[WBEMDISP] Sync with Wine Staging 1.7.37. CORE-9246
[reactos.git] / reactos / dll / win32 / wbemdisp / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4 spec2def(wbemdisp.dll wbemdisp.spec)
5
6 list(APPEND SOURCE
7 locator.c
8 main.c
9 wbemdisp_private.h)
10
11 add_idl_headers(wbemdisp_idlheader wbemdisp_classes.idl)
12 add_typelib(wbemdisp_tlb.idl)
13
14 list(APPEND wbemdisp_rc_deps
15 ${CMAKE_CURRENT_SOURCE_DIR}/wbemdisp_classes.rgs
16 ${CMAKE_CURRENT_SOURCE_DIR}/wbemdisp_tlb.rgs
17 ${CMAKE_CURRENT_BINARY_DIR}/wbemdisp_tlb.tlb)
18
19 set_source_files_properties(wbemdisp.rc PROPERTIES OBJECT_DEPENDS "${wbemdisp_rc_deps}")
20
21 add_library(wbemdisp SHARED
22 ${SOURCE}
23 guid.c
24 wbemdisp.rc
25 ${CMAKE_CURRENT_BINARY_DIR}/wbemdisp.def)
26
27 set_module_type(wbemdisp win32dll)
28 target_link_libraries(wbemdisp uuid wine)
29 add_dependencies(wbemdisp stdole2 wbemdisp_idlheader)
30 add_importlibs(wbemdisp oleaut32 ole32 msvcrt kernel32 ntdll)
31 add_pch(wbemdisp wbemdisp_private.h SOURCE)
32 add_cd_file(TARGET wbemdisp DESTINATION reactos/system32/wbem FOR all)