1 2include_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 8add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/eventlogrpc.idl) 9 10list(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 19add_executable(eventlog ${SOURCE} eventlog.rc) 20add_pch(eventlog eventlog.h SOURCE) 21 22if(NOT MSVC) 23 target_link_libraries(eventlog ${PSEH_LIB}) 24endif() 25 26set_module_type(eventlog win32cui UNICODE) 27target_link_libraries(eventlog evtlib) 28add_importlibs(eventlog advapi32 rpcrt4 msvcrt kernel32 ntdll) 29add_cd_file(TARGET eventlog DESTINATION reactos/system32 FOR all) 30