2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-08 19:01:04 +00:00
|
|
|
include_directories(
|
2016-10-25 23:50:31 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/evtlib
|
2016-11-07 13:29:09 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
|
2011-08-07 00:53:19 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/eventlogrpc.idl)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
eventlog.c
|
|
|
|
eventsource.c
|
|
|
|
logport.c
|
|
|
|
rpc.c
|
2011-08-07 00:53:19 +00:00
|
|
|
file.c
|
2014-02-08 19:01:04 +00:00
|
|
|
eventlog.h
|
2011-08-07 00:53:19 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_s.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-08 19:01:04 +00:00
|
|
|
add_executable(eventlog ${SOURCE} eventlog.rc)
|
2016-10-25 23:50:31 +00:00
|
|
|
add_pch(eventlog eventlog.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2011-08-07 00:53:19 +00:00
|
|
|
if(NOT MSVC)
|
2012-09-09 23:59:16 +00:00
|
|
|
target_link_libraries(eventlog ${PSEH_LIB})
|
2011-08-07 00:53:19 +00:00
|
|
|
endif()
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2011-09-03 19:11:44 +00:00
|
|
|
set_module_type(eventlog win32cui UNICODE)
|
2016-10-25 23:50:31 +00:00
|
|
|
target_link_libraries(eventlog evtlib)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_importlibs(eventlog advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
|
|
|
add_cd_file(TARGET eventlog DESTINATION reactos/system32 FOR all)
|