2 add_definitions(-D__WINESRC__)
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
7 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
8 spec2def(wshom.ocx wshom.ocx.spec)
9 add_idl_headers(wshom_idlheader wshom.idl)
10 add_typelib(wshom.idl)
17 add_library(wshom SHARED
21 ${CMAKE_CURRENT_BINARY_DIR}/wshom.def)
23 list(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)
28 set_source_files_properties(wshom.rc PROPERTIES OBJECT_DEPENDS "${wshom_rc_deps}")
29 set_module_type(wshom win32ocx)
30 target_link_libraries(wshom uuid wine)
31 add_importlibs(wshom oleaut32 ole32 shell32 advapi32 advapi32_vista user32 msvcrt kernel32 ntdll)
32 add_dependencies(wshom stdole2 wshom_idlheader)
33 add_pch(wshom wshom_private.h SOURCE)
34 add_cd_file(TARGET wshom DESTINATION reactos/system32 FOR all)