[FASTFAT]
[reactos.git] / reactos / dll / win32 / wshom.ocx / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4 spec2def(wshom.ocx wshom.ocx.spec)
5 add_idl_headers(wshom_idlheader wshom.idl)
6 add_typelib(wshom.idl)
7
8 list(APPEND SOURCE
9 shell.c
10 wshom_main.c
11 wshom_private.h)
12
13 add_library(wshom SHARED
14 ${SOURCE}
15 guid.c
16 wshom.rc
17 ${CMAKE_CURRENT_BINARY_DIR}/wshom.def)
18
19 list(APPEND wshom_rc_deps
20 ${CMAKE_CURRENT_SOURCE_DIR}/wshom.rgs
21 ${CMAKE_CURRENT_SOURCE_DIR}/wshom.tlb.rgs
22 ${CMAKE_CURRENT_BINARY_DIR}/wshom.tlb)
23
24 set_source_files_properties(wshom.rc PROPERTIES OBJECT_DEPENDS "${wshom_rc_deps}")
25 set_module_type(wshom win32ocx)
26 target_link_libraries(wshom uuid wine)
27 add_importlibs(wshom oleaut32 ole32 shell32 msvcrt kernel32 ntdll)
28 add_dependencies(wshom stdole2 wshom_idlheader)
29 add_pch(wshom wshom_private.h SOURCE)
30 add_cd_file(TARGET wshom DESTINATION reactos/system32 FOR all)