xref: /reactos/base/services/rpcss/CMakeLists.txt (revision f308c6a2)
1
2add_rpc_files(server
3    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine/epm.idl
4    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine/irot.idl)
5
6
7list(APPEND SOURCE
8    epmp.c
9    irotp.c
10    rpcss_main.c
11    setup.c
12    precomp.h
13    ${CMAKE_CURRENT_BINARY_DIR}/epm_s.c
14    ${CMAKE_CURRENT_BINARY_DIR}/irot_s.c)
15
16include_directories(${REACTOS_BINARY_DIR}/sdk/include/reactos/wine)
17add_executable(rpcss ${SOURCE} rpcss.rc)
18
19if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
20    target_compile_options(rpcss PRIVATE "-Wno-cast-calling-convention")
21endif()
22
23target_link_libraries(rpcss ${PSEH_LIB} wine)
24set_module_type(rpcss win32cui UNICODE)
25add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)
26add_pch(rpcss precomp.h SOURCE)
27add_cd_file(TARGET rpcss DESTINATION reactos/system32 FOR all)
28