dec89c31b5c25ad27034d863d1d27295923fc03d
[reactos.git] / dll / win32 / stdole32.tlb / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 ADD_TYPELIB(std_ole_v1 std_ole_v1.idl)
7
8 add_custom_command(
9 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def
10 COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/stdole32.tlb.spec --filename stdole32.tlb
11 DEPENDS native-winebuild)
12 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def PROPERTIES GENERATED TRUE)
13 add_custom_target(stdole32.tlb_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def)
14
15 add_library(stdole32.tlb SHARED rsrc.rc)
16
17 set_entrypoint(stdole32.tlb 0)
18 set_target_properties(stdole32.tlb PROPERTIES SUFFIX "")
19
20 target_link_libraries(stdole32.tlb ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def)
21
22 add_dependencies(stdole32.tlb std_ole_v1 stdole32.tlb_def)
23 add_livecd_target(stdole32.tlb reactos/system32)