reactos/dll/win32/wshom.ocx/CMakeLists.txt
2024-10-20 14:12:25 +03:00

36 lines
1 KiB
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)
list(APPEND PCH_SKIP_SOURCE
guid.c)
add_library(wshom MODULE
${SOURCE}
${PCH_SKIP_SOURCE}
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 oldnames)
add_importlibs(wshom oleaut32 ole32 shell32 advapi32 advapi32_vista user32 msvcrt kernel32 ntdll)
add_dependencies(wshom stdole2 wshom_idlheader)
add_pch(wshom precomp.h "${PCH_SKIP_SOURCE}")
add_cd_file(TARGET wshom DESTINATION reactos/system32 FOR all)