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