reactos/dll/win32/sti/CMakeLists.txt
Jérôme Gardou 4ee1da42f1 [CMAKE]
- rewrite spec2def macro because
1. cmake gracefully handles def files as source files
2. cmake gracefully handles autogenerated files as source
3. it did not take into account the fact that all shared libraries haven't the .dll extension

svn path=/branches/cmake-bringup/; revision=49358
2010-10-30 16:08:19 +00:00

41 lines
635 B
CMake

remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_definitions(
-D__WINESRC__
-DENTRY_PREFIX=STI_
-DPROXY_DELEGATION
-DREGISTER_PROXY_DLL)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(sti.dll sti.spec)
add_library(sti SHARED
regsvr.c
sti.c
sti_main.c
sti_wia.idl
${CMAKE_CURRENT_BINARY_DIR}/sti.def)
set_entrypoint(sti 0)
target_link_libraries(sti
sti_proxy
wine
uuid
pseh)
add_importlibs(sti
ole32
oleaut32
rpcrt4
advapi32
kernel32
ntdll)
rpcproxy(sti sti_wia.idl)
add_cab_target(sti 1)