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

44 lines
1.1 KiB
CMake

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys/lsass)
add_rpc_files(server
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dssetup.idl
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/lsa.idl)
spec2def(lsasrv.dll lsasrv.spec ADD_IMPORTLIB)
list(APPEND SOURCE
authpackage.c
authport.c
database.c
dssetup.c
lookup.c
lsarpc.c
lsasrv.c
notify.c
policy.c
privileges.c
registry.c
security.c
service.c
session.c
srm.c
utils.c
lsasrv.h
${CMAKE_CURRENT_BINARY_DIR}/dssetup_s.c
${CMAKE_CURRENT_BINARY_DIR}/lsa_s.c
${CMAKE_CURRENT_BINARY_DIR}/lsasrv_stubs.c)
add_library(lsasrv MODULE
${SOURCE}
lsasrv.rc
${CMAKE_CURRENT_BINARY_DIR}/lsasrv.def)
set_module_type(lsasrv win32dll UNICODE)
target_link_libraries(lsasrv wine ${PSEH_LIB})
add_importlibs(lsasrv samsrv rpcrt4 msvcrt kernel32 advapi32 ntdll)
add_pch(lsasrv lsasrv.h SOURCE)
add_cd_file(TARGET lsasrv DESTINATION reactos/system32 FOR all)