[MSI_WINETEST] Fix build with CMake 3.9.0 and higher (attempt #2)
[reactos.git] / dll / win32 / sti / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -DENTRY_PREFIX=STI_
5 -DPROXY_DELEGATION
6 -DWINE_REGISTER_DLL)
7
8 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
9 spec2def(sti.dll sti.spec)
10 add_rpcproxy_files(sti_wia.idl)
11
12 list(APPEND SOURCE
13 sti.c
14 sti_main.c
15 precomp.h
16 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
17 ${CMAKE_CURRENT_BINARY_DIR}/sti_wia_p.c)
18
19 add_library(sti MODULE
20 ${SOURCE}
21 guid.c
22 sti.rc
23 ${CMAKE_CURRENT_BINARY_DIR}/sti.def)
24
25 set_module_type(sti win32dll)
26 target_link_libraries(sti wine uuid ${PSEH_LIB})
27 add_importlibs(sti ole32 oleaut32 rpcrt4 advapi32 msvcrt kernel32 ntdll)
28 add_pch(sti precomp.h SOURCE)
29 add_cd_file(TARGET sti DESTINATION reactos/system32 FOR all)