1
2add_definitions(-D__WINESRC__)
3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4add_typelib(std_ole_v2.idl)
5spec2def(stdole2.tlb stdole2.tlb.spec)
6
7list(APPEND SOURCE
8    rsrc.rc
9    ${CMAKE_CURRENT_BINARY_DIR}/stdole2.def)
10
11set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/std_ole_v2.tlb)
12add_library(stdole2.tlb MODULE ${SOURCE})
13set_module_type(stdole2.tlb module)
14set_target_properties(stdole2.tlb PROPERTIES SUFFIX "")
15add_cd_file(TARGET stdole2.tlb DESTINATION reactos/system32 FOR all)
16