[CMAKE/RPC]
[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 # FIXME: See CORE-8200
8 set(IDL_FLAGS ${IDL_FLAGS} -Oif)
9
10 add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/svcctl.idl)
11
12
13 list(APPEND SOURCE
14 config.c
15 controlset.c
16 database.c
17 driver.c
18 groupdb.c
19 lock.c
20 rpcserver.c
21 services.c
22 services.h
23 ${CMAKE_CURRENT_BINARY_DIR}/svcctl_s.c)
24
25 add_executable(services ${SOURCE} services.rc)
26
27 if(NOT MSVC)
28 target_link_libraries(services ${PSEH_LIB})
29 endif()
30
31 set_module_type(services win32gui UNICODE)
32 add_importlibs(services user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
33 add_pch(services services.h SOURCE)
34 add_cd_file(TARGET services DESTINATION reactos/system32 FOR all)