[TFTPD] Fix compilation, and use the #define MAX_SERVERS where needed instead of...
[reactos.git] / base / services / eventlog / CMakeLists.txt
1
2 include_directories(
3 ${REACTOS_SOURCE_DIR}/sdk/lib/evtlib
4 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys
5 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
6 ${CMAKE_CURRENT_BINARY_DIR})
7
8 add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/eventlogrpc.idl)
9
10 list(APPEND SOURCE
11 eventlog.c
12 eventsource.c
13 logport.c
14 rpc.c
15 file.c
16 eventlog.h
17 ${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_s.c)
18
19 add_executable(eventlog ${SOURCE} eventlog.rc)
20 add_pch(eventlog eventlog.h SOURCE)
21
22 if(NOT MSVC)
23 target_link_libraries(eventlog ${PSEH_LIB})
24 endif()
25
26 set_module_type(eventlog win32cui UNICODE)
27 target_link_libraries(eventlog evtlib)
28 add_importlibs(eventlog advapi32 rpcrt4 msvcrt kernel32 ntdll)
29 add_cd_file(TARGET eventlog DESTINATION reactos/system32 FOR all)