[TFTPD] Fix compilation, and use the #define MAX_SERVERS where needed instead of...
[reactos.git] / base / services / rpcss / CMakeLists.txt
1
2 add_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
7 list(APPEND SOURCE
8 epmp.c
9 irotp.c
10 rpcss_main.c
11 service_main.c
12 rpcss.h
13 ${CMAKE_CURRENT_BINARY_DIR}/epm_s.c
14 ${CMAKE_CURRENT_BINARY_DIR}/irot_s.c)
15
16 include_directories(${REACTOS_BINARY_DIR}/sdk/include/reactos/wine)
17 add_executable(rpcss ${SOURCE} rpcss.rc)
18
19 if(USE_CLANG_CL)
20 add_target_compile_flags(rpcss "-Wno-cast-calling-convention")
21 endif()
22
23 target_link_libraries(rpcss ${PSEH_LIB} wine)
24 set_module_type(rpcss win32cui UNICODE)
25 add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)
26 add_pch(rpcss rpcss.h SOURCE)
27 add_cd_file(TARGET rpcss DESTINATION reactos/system32 FOR all)