mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
34 lines
1 KiB
CMake
34 lines
1 KiB
CMake
|
|
add_definitions(-D__WINESRC__)
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(wbemdisp.dll wbemdisp.spec)
|
|
|
|
list(APPEND SOURCE
|
|
locator.c
|
|
main.c)
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
guid.c)
|
|
|
|
add_idl_headers(wbemdisp_idlheader wbemdisp_classes.idl)
|
|
add_typelib(wbemdisp_tlb.idl)
|
|
|
|
list(APPEND wbemdisp_rc_deps
|
|
${CMAKE_CURRENT_SOURCE_DIR}/wbemdisp_classes.rgs
|
|
${CMAKE_CURRENT_SOURCE_DIR}/wbemdisp_tlb.rgs
|
|
${CMAKE_CURRENT_BINARY_DIR}/wbemdisp_tlb.tlb)
|
|
|
|
set_source_files_properties(wbemdisp.rc PROPERTIES OBJECT_DEPENDS "${wbemdisp_rc_deps}")
|
|
|
|
add_library(wbemdisp MODULE
|
|
${SOURCE}
|
|
${PCH_SKIP_SOURCE}
|
|
wbemdisp.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/wbemdisp.def)
|
|
|
|
set_module_type(wbemdisp win32dll)
|
|
target_link_libraries(wbemdisp uuid wine)
|
|
add_dependencies(wbemdisp stdole2 wbemdisp_idlheader)
|
|
add_importlibs(wbemdisp oleaut32 ole32 msvcrt kernel32 ntdll)
|
|
add_pch(wbemdisp precomp.h "${PCH_SKIP_SOURCE}")
|
|
add_cd_file(TARGET wbemdisp DESTINATION reactos/system32/wbem FOR all)
|