[SDK] One step further towards ReactOS source code tree restructure: the sdk folder...
[reactos.git] / reactos / dll / win32 / wshom.ocx / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
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)
11
12 list(APPEND SOURCE
13 shell.c
14 wshom_main.c
15 wshom_private.h)
16
17 add_library(wshom SHARED
18 ${SOURCE}
19 guid.c
20 wshom.rc
21 ${CMAKE_CURRENT_BINARY_DIR}/wshom.def)
22
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)
27
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)