Revert "[CMAKE/RPC]"
[reactos.git] / reactos / dll / win32 / lsasrv / CMakeLists.txt
1
2 include_directories(
3 ${CMAKE_CURRENT_BINARY_DIR}
4 ${REACTOS_SOURCE_DIR}/include/reactos/idl
5 ${REACTOS_SOURCE_DIR}/include/reactos/subsys/lsass)
6
7 add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/lsa.idl)
8 spec2def(lsasrv.dll lsasrv.spec ADD_IMPORTLIB)
9
10 list(APPEND SOURCE
11 authpackage.c
12 authport.c
13 database.c
14 lookup.c
15 lsarpc.c
16 lsasrv.c
17 policy.c
18 privileges.c
19 registry.c
20 security.c
21 session.c
22 utils.c
23 lsasrv.h
24 ${CMAKE_CURRENT_BINARY_DIR}/lsa_s.c
25 ${CMAKE_CURRENT_BINARY_DIR}/lsasrv_stubs.c)
26
27 add_library(lsasrv SHARED
28 ${SOURCE}
29 lsasrv.rc
30 ${CMAKE_CURRENT_BINARY_DIR}/lsasrv.def)
31
32 set_module_type(lsasrv win32dll UNICODE)
33 target_link_libraries(lsasrv wine ${PSEH_LIB})
34 add_importlibs(lsasrv samsrv rpcrt4 msvcrt kernel32 advapi32 ntdll)
35 add_pch(lsasrv lsasrv.h SOURCE)
36 add_dependencies(lsasrv psdk)
37 add_cd_file(TARGET lsasrv DESTINATION reactos/system32 FOR all)