xref: /reactos/dll/win32/samsrv/CMakeLists.txt (revision fb8edf90)
1
2include_directories(
3    ${CMAKE_CURRENT_BINARY_DIR}
4    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
5
6add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/sam.idl)
7spec2def(samsrv.dll samsrv.spec ADD_IMPORTLIB)
8
9list(APPEND SOURCE
10    alias.c
11    database.c
12    display.c
13    domain.c
14    group.c
15    registry.c
16    samrpc.c
17    samsrv.c
18    security.c
19    setup.c
20    user.c
21    utils.c
22    samsrv.h
23    ${CMAKE_CURRENT_BINARY_DIR}/sam_s.c
24    ${CMAKE_CURRENT_BINARY_DIR}/samsrv_stubs.c)
25
26add_library(samsrv MODULE
27    ${SOURCE}
28    samsrv.rc
29    ${CMAKE_CURRENT_BINARY_DIR}/samsrv.def)
30
31set_module_type(samsrv win32dll UNICODE)
32target_link_libraries(samsrv wine ${PSEH_LIB})
33add_importlibs(samsrv rpcrt4 advapi32 msvcrt kernel32 ntdll)
34add_pch(samsrv samsrv.h SOURCE)
35add_cd_file(TARGET samsrv DESTINATION reactos/system32 FOR all)
36