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