reactos/dll/win32/wshom.ocx/CMakeLists.txt

34 lines
1,007 B
CMake

add_definitions(-D__WINESRC__)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(wshom.ocx wshom.ocx.spec)
add_idl_headers(wshom_idlheader wshom.idl)
add_typelib(wshom.idl)
list(APPEND SOURCE
shell.c
wshom_main.c
precomp.h)
add_library(wshom SHARED
${SOURCE}
guid.c
wshom.rc
${CMAKE_CURRENT_BINARY_DIR}/wshom.def)
list(APPEND wshom_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/wshom.rgs
${CMAKE_CURRENT_SOURCE_DIR}/wshom.tlb.rgs
${CMAKE_CURRENT_BINARY_DIR}/wshom.tlb)
set_source_files_properties(wshom.rc PROPERTIES OBJECT_DEPENDS "${wshom_rc_deps}")
set_module_type(wshom win32ocx)
target_link_libraries(wshom uuid wine)
add_importlibs(wshom oleaut32 ole32 shell32 advapi32 advapi32_vista user32 msvcrt kernel32 ntdll)
add_dependencies(wshom stdole2 wshom_idlheader)
add_pch(wshom precomp.h SOURCE)
add_cd_file(TARGET wshom DESTINATION reactos/system32 FOR all)