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 16list(APPEND PCH_SKIP_SOURCE 17 guid.c) 18 19add_library(wshom MODULE 20 ${SOURCE} 21 ${PCH_SKIP_SOURCE} 22 wshom.rc 23 ${CMAKE_CURRENT_BINARY_DIR}/wshom.def) 24 25list(APPEND wshom_rc_deps 26 ${CMAKE_CURRENT_SOURCE_DIR}/wshom.rgs 27 ${CMAKE_CURRENT_SOURCE_DIR}/wshom.tlb.rgs 28 ${CMAKE_CURRENT_BINARY_DIR}/wshom.tlb) 29 30set_source_files_properties(wshom.rc PROPERTIES OBJECT_DEPENDS "${wshom_rc_deps}") 31set_module_type(wshom win32ocx) 32target_link_libraries(wshom uuid wine) 33add_importlibs(wshom oleaut32 ole32 shell32 advapi32 advapi32_vista user32 msvcrt kernel32 ntdll) 34add_dependencies(wshom stdole2 wshom_idlheader) 35add_pch(wshom precomp.h "${PCH_SKIP_SOURCE}") 36add_cd_file(TARGET wshom DESTINATION reactos/system32 FOR all) 37