[OSK] Refactor the registry configuration code (#2096)
[reactos.git] / dll / win32 / lsasrv / CMakeLists.txt
1
2 include_directories(
3 ${CMAKE_CURRENT_BINARY_DIR}
4 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
5 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys/lsass)
6
7 add_rpc_files(server
8 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dssetup.idl
9 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/lsa.idl)
10 spec2def(lsasrv.dll lsasrv.spec ADD_IMPORTLIB)
11
12 list(APPEND SOURCE
13 authpackage.c
14 authport.c
15 database.c
16 dssetup.c
17 lookup.c
18 lsarpc.c
19 lsasrv.c
20 notify.c
21 policy.c
22 privileges.c
23 registry.c
24 security.c
25 service.c
26 session.c
27 srm.c
28 utils.c
29 lsasrv.h
30 ${CMAKE_CURRENT_BINARY_DIR}/dssetup_s.c
31 ${CMAKE_CURRENT_BINARY_DIR}/lsa_s.c
32 ${CMAKE_CURRENT_BINARY_DIR}/lsasrv_stubs.c)
33
34 add_library(lsasrv MODULE
35 ${SOURCE}
36 lsasrv.rc
37 ${CMAKE_CURRENT_BINARY_DIR}/lsasrv.def)
38
39 set_module_type(lsasrv win32dll UNICODE)
40 target_link_libraries(lsasrv wine ${PSEH_LIB})
41 add_importlibs(lsasrv samsrv rpcrt4 msvcrt kernel32 advapi32 ntdll)
42 add_pch(lsasrv lsasrv.h SOURCE)
43 add_cd_file(TARGET lsasrv DESTINATION reactos/system32 FOR all)