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 domain.c 13 group.c 14 registry.c 15 samrpc.c 16 samsrv.c 17 security.c 18 setup.c 19 user.c 20 utils.c 21 samsrv.h 22 ${CMAKE_CURRENT_BINARY_DIR}/sam_s.c 23 ${CMAKE_CURRENT_BINARY_DIR}/samsrv_stubs.c) 24 25add_library(samsrv SHARED 26 ${SOURCE} 27 samsrv.rc 28 ${CMAKE_CURRENT_BINARY_DIR}/samsrv.def) 29 30set_module_type(samsrv win32dll UNICODE) 31target_link_libraries(samsrv wine ${PSEH_LIB}) 32add_importlibs(samsrv rpcrt4 advapi32 msvcrt kernel32 ntdll) 33add_pch(samsrv samsrv.h SOURCE) 34add_cd_file(TARGET samsrv DESTINATION reactos/system32 FOR all) 35