[MSIEXEC] Sync with Wine Staging 2.16. CORE-13762
[reactos.git] / base / system / services / CMakeLists.txt
1
2 include_directories(
3 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys
4 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
5 ${CMAKE_CURRENT_BINARY_DIR})
6
7 add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/svcctl.idl)
8
9 list(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
22 add_executable(services ${SOURCE} services.rc)
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 userenv user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
30 add_pch(services services.h SOURCE)
31 add_cd_file(TARGET services DESTINATION reactos/system32 FOR all)