[CMAKE]
[reactos.git] / dll / win32 / sti / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(
6 -D__WINESRC__
7 -DENTRY_PREFIX=STI_
8 -DPROXY_DELEGATION
9 -DREGISTER_PROXY_DLL)
10
11 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
12
13 add_library(sti SHARED
14 regsvr.c
15 sti.c
16 sti_main.c
17 sti_wia.idl
18 sti.def)
19
20 if(NOT MSVC)
21 set_source_files_properties(sti.def PROPERTIES EXTERNAL_OBJECT TRUE)
22 endif()
23
24 set_entrypoint(sti 0)
25
26 target_link_libraries(sti
27 sti_proxy
28 wine
29 uuid
30 ${PSEH_LIB})
31
32 add_importlibs(sti
33 ole32
34 oleaut32
35 rpcrt4
36 advapi32
37 kernel32
38 ntdll)
39
40 rpcproxy(sti sti_wia.idl)
41 add_cab_target(sti 1)