2011-05-16 13:12:07 +00:00
|
|
|
|
2012-05-20 18:31:10 +00:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/idl)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-05-20 18:31:10 +00:00
|
|
|
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/sam.idl)
|
|
|
|
|
|
|
|
spec2def(samsrv.dll samsrv.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2012-05-27 05:33:07 +00:00
|
|
|
database.c
|
2012-06-01 18:03:25 +00:00
|
|
|
registry.c
|
2012-05-20 18:31:10 +00:00
|
|
|
samrpc.c
|
2011-05-16 13:12:07 +00:00
|
|
|
samsrv.c
|
2012-05-21 13:38:32 +00:00
|
|
|
setup.c
|
2011-05-16 13:12:07 +00:00
|
|
|
samsrv.rc
|
2012-05-20 18:31:10 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/samsrv_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/samsrv.def
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/sam_s.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_library(samsrv SHARED ${SOURCE})
|
2011-09-03 19:11:44 +00:00
|
|
|
set_module_type(samsrv win32dll ENTRYPOINT 0 UNICODE)
|
|
|
|
|
2012-05-20 18:31:10 +00:00
|
|
|
target_link_libraries(samsrv wine ${PSEH_LIB})
|
2012-05-21 13:38:32 +00:00
|
|
|
add_importlibs(samsrv rpcrt4 advapi32 kernel32 ntdll)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_dependencies(samsrv psdk)
|
|
|
|
add_cd_file(TARGET samsrv DESTINATION reactos/system32 FOR all)
|