xref: /reactos/base/system/services/CMakeLists.txt (revision 1734f297)
1
2include_directories(
3    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys
4    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
5    ${CMAKE_CURRENT_BINARY_DIR})
6
7add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/svcctl.idl)
8
9list(APPEND SOURCE
10    config.c
11    controlset.c
12    database.c
13    driver.c
14    groupdb.c
15    lock.c
16    rpcserver.c
17    security.c
18    services.c
19    services.h
20    ${CMAKE_CURRENT_BINARY_DIR}/svcctl_s.c)
21
22add_executable(services ${SOURCE} services.rc)
23target_link_libraries(services ${PSEH_LIB})
24
25set_module_type(services win32gui UNICODE)
26add_importlibs(services userenv user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
27add_pch(services services.h SOURCE)
28add_cd_file(TARGET services DESTINATION reactos/system32 FOR all)
29