1 2include_directories( 3 ${CMAKE_CURRENT_BINARY_DIR} 4 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl 5 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys/lsass) 6 7add_rpc_files(server 8 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dssetup.idl 9 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/lsa.idl) 10spec2def(lsasrv.dll lsasrv.spec ADD_IMPORTLIB) 11 12list(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 34add_library(lsasrv SHARED 35 ${SOURCE} 36 lsasrv.rc 37 ${CMAKE_CURRENT_BINARY_DIR}/lsasrv.def) 38 39set_module_type(lsasrv win32dll UNICODE) 40target_link_libraries(lsasrv wine ${PSEH_LIB}) 41add_importlibs(lsasrv samsrv rpcrt4 msvcrt kernel32 advapi32 ntdll) 42add_pch(lsasrv lsasrv.h SOURCE) 43add_cd_file(TARGET lsasrv DESTINATION reactos/system32 FOR all) 44