xref: /reactos/dll/win32/wbemdisp/CMakeLists.txt (revision ac43fd2b)
1
2add_definitions(-D__WINESRC__)
3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4spec2def(wbemdisp.dll wbemdisp.spec)
5
6list(APPEND SOURCE
7    locator.c
8    main.c
9    precomp.h)
10
11add_idl_headers(wbemdisp_idlheader wbemdisp_classes.idl)
12add_typelib(wbemdisp_tlb.idl)
13
14list(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
19set_source_files_properties(wbemdisp.rc PROPERTIES OBJECT_DEPENDS "${wbemdisp_rc_deps}")
20
21add_library(wbemdisp MODULE
22    ${SOURCE}
23    guid.c
24    wbemdisp.rc
25    ${CMAKE_CURRENT_BINARY_DIR}/wbemdisp.def)
26
27set_module_type(wbemdisp win32dll)
28target_link_libraries(wbemdisp uuid wine)
29add_dependencies(wbemdisp stdole2 wbemdisp_idlheader)
30add_importlibs(wbemdisp oleaut32 ole32 msvcrt kernel32 ntdll)
31add_pch(wbemdisp precomp.h SOURCE)
32add_cd_file(TARGET wbemdisp DESTINATION reactos/system32/wbem FOR all)
33