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 10list(APPEND PCH_SKIP_SOURCE 11 guid.c) 12 13add_idl_headers(wbemdisp_idlheader wbemdisp_classes.idl) 14add_typelib(wbemdisp_tlb.idl) 15 16list(APPEND wbemdisp_rc_deps 17 ${CMAKE_CURRENT_SOURCE_DIR}/wbemdisp_classes.rgs 18 ${CMAKE_CURRENT_SOURCE_DIR}/wbemdisp_tlb.rgs 19 ${CMAKE_CURRENT_BINARY_DIR}/wbemdisp_tlb.tlb) 20 21set_source_files_properties(wbemdisp.rc PROPERTIES OBJECT_DEPENDS "${wbemdisp_rc_deps}") 22 23add_library(wbemdisp MODULE 24 ${SOURCE} 25 ${PCH_SKIP_SOURCE} 26 wbemdisp.rc 27 ${CMAKE_CURRENT_BINARY_DIR}/wbemdisp.def) 28 29set_module_type(wbemdisp win32dll) 30target_link_libraries(wbemdisp uuid wine) 31add_dependencies(wbemdisp stdole2 wbemdisp_idlheader) 32add_importlibs(wbemdisp oleaut32 ole32 msvcrt kernel32 ntdll) 33add_pch(wbemdisp precomp.h "${PCH_SKIP_SOURCE}") 34add_cd_file(TARGET wbemdisp DESTINATION reactos/system32/wbem FOR all) 35