reactos/dll/win32/secur32/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

32 lines
801 B
CMake

add_definitions(-D__SECUR32__)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys)
spec2def(secur32.dll secur32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dllmain.c
lsalpc.c
sspi.c
stubs.c
thunks.c
wrapper.c
wine/base64_codec.c
wine/dispatcher.c
wine/hmac_md5.c
wine/kerberos.c
wine/negotiate.c
wine/ntlm.c
wine/util.c
precomp.h)
add_library(secur32 MODULE
${SOURCE}
secur32.rc
${CMAKE_CURRENT_BINARY_DIR}/secur32_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/secur32.def)
set_module_type(secur32 win32dll UNICODE)
target_link_libraries(secur32 lsalib wine)
add_importlibs(secur32 advapi32 netapi32 msvcrt kernel32 ntdll)
add_pch(secur32 precomp.h SOURCE)
add_cd_file(TARGET secur32 DESTINATION reactos/system32 FOR all)