Sync with trunk.
[reactos.git] / base / services / eventlog / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/idl
3 ${CMAKE_CURRENT_BINARY_DIR})
4
5 add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/eventlogrpc.idl)
6
7
8 list(APPEND SOURCE
9 eventlog.c
10 eventsource.c
11 logport.c
12 eventlog.rc
13 rpc.c
14 file.c
15 ${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_s.c)
16
17 add_executable(eventlog ${SOURCE})
18
19 if(NOT MSVC)
20 target_link_libraries(eventlog ${PSEH_LIB})
21 endif()
22
23 set_module_type(eventlog win32cui UNICODE)
24 add_importlibs(eventlog advapi32 rpcrt4 msvcrt kernel32 ntdll)
25 add_pch(eventlog eventlog.h)
26 add_cd_file(TARGET eventlog DESTINATION reactos/system32 FOR all)