[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 # FIXME: See CORE-8200
8 set(IDL_FLAGS ${IDL_FLAGS} -Oif)
9
10 add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/lsa.idl)
11 spec2def(lsasrv.dll lsasrv.spec ADD_IMPORTLIB)
12
13 list(APPEND SOURCE
14 authpackage.c
15 authport.c
16 database.c
17 lookup.c
18 lsarpc.c
19 lsasrv.c
20 policy.c
21 privileges.c
22 registry.c
23 security.c
24 session.c
25 utils.c
26 lsasrv.h
27 ${CMAKE_CURRENT_BINARY_DIR}/lsa_s.c
28 ${CMAKE_CURRENT_BINARY_DIR}/lsasrv_stubs.c)
29
30 add_library(lsasrv SHARED
31 ${SOURCE}
32 lsasrv.rc
33 ${CMAKE_CURRENT_BINARY_DIR}/lsasrv.def)
34
35 set_module_type(lsasrv win32dll UNICODE)
36 target_link_libraries(lsasrv wine ${PSEH_LIB})
37 add_importlibs(lsasrv samsrv rpcrt4 msvcrt kernel32 advapi32 ntdll)
38 add_pch(lsasrv lsasrv.h SOURCE)
39 add_dependencies(lsasrv psdk)
40 add_cd_file(TARGET lsasrv DESTINATION reactos/system32 FOR all)