1 2add_definitions(-D__WINESRC__) 3 4remove_definitions(-D_WIN32_WINNT=0x502) 5add_definitions(-D_WIN32_WINNT=0x600) 6 7include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 8spec2def(wshom.ocx wshom.ocx.spec) 9add_idl_headers(wshom_idlheader wshom.idl) 10add_typelib(wshom.idl) 11 12list(APPEND SOURCE 13 shell.c 14 wshom_main.c 15 precomp.h) 16 17add_library(wshom SHARED 18 ${SOURCE} 19 guid.c 20 wshom.rc 21 ${CMAKE_CURRENT_BINARY_DIR}/wshom.def) 22 23list(APPEND wshom_rc_deps 24 ${CMAKE_CURRENT_SOURCE_DIR}/wshom.rgs 25 ${CMAKE_CURRENT_SOURCE_DIR}/wshom.tlb.rgs 26 ${CMAKE_CURRENT_BINARY_DIR}/wshom.tlb) 27 28set_source_files_properties(wshom.rc PROPERTIES OBJECT_DEPENDS "${wshom_rc_deps}") 29set_module_type(wshom win32ocx) 30target_link_libraries(wshom uuid wine) 31add_importlibs(wshom oleaut32 ole32 shell32 advapi32 advapi32_vista user32 msvcrt kernel32 ntdll) 32add_dependencies(wshom stdole2 wshom_idlheader) 33add_pch(wshom precomp.h SOURCE) 34add_cd_file(TARGET wshom DESTINATION reactos/system32 FOR all) 35