reactos/dll/win32/wintrust/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00

28 lines
829 B
CMake

add_definitions(-D__WINESRC__)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(wintrust.dll wintrust.spec ADD_IMPORTLIB)
list(APPEND SOURCE
asn.c
crypt.c
register.c
softpub.c
wintrust_main.c
precomp.h
${CMAKE_CURRENT_BINARY_DIR}/wintrust_stubs.c)
add_library(wintrust MODULE
${SOURCE}
version.rc
${CMAKE_CURRENT_BINARY_DIR}/wintrust.def)
set_module_type(wintrust win32dll)
target_link_libraries(wintrust wine ${PSEH_LIB})
# FIXME: imagehlp should be delay-imported. See CORE-6504
#add_delay_importlibs(wintrust cryptui imagehlp)
add_delay_importlibs(wintrust cryptui)
add_importlibs(wintrust imagehlp crypt32 user32 advapi32 msvcrt kernel32 ntdll)
add_pch(wintrust precomp.h SOURCE)
add_cd_file(TARGET wintrust DESTINATION reactos/system32 FOR all)