mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 14:19:25 +00:00
23373acbb9
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.
34 lines
838 B
CMake
34 lines
838 B
CMake
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
|
|
|
|
add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/sam.idl)
|
|
spec2def(samsrv.dll samsrv.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
alias.c
|
|
database.c
|
|
domain.c
|
|
group.c
|
|
registry.c
|
|
samrpc.c
|
|
samsrv.c
|
|
security.c
|
|
setup.c
|
|
user.c
|
|
utils.c
|
|
samsrv.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/sam_s.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/samsrv_stubs.c)
|
|
|
|
add_library(samsrv MODULE
|
|
${SOURCE}
|
|
samsrv.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/samsrv.def)
|
|
|
|
set_module_type(samsrv win32dll UNICODE)
|
|
target_link_libraries(samsrv wine ${PSEH_LIB})
|
|
add_importlibs(samsrv rpcrt4 advapi32 msvcrt kernel32 ntdll)
|
|
add_pch(samsrv samsrv.h SOURCE)
|
|
add_cd_file(TARGET samsrv DESTINATION reactos/system32 FOR all)
|