Implement command line parsing; Implement messages-per-second limits in uploader; First playable version

This commit is contained in:
Marko Zivanovic
2015-09-07 11:43:32 +02:00
parent 4f1d9f4c3d
commit 8fe990e64d
8 changed files with 99 additions and 7 deletions
+10 -2
View File
@@ -1,4 +1,5 @@
find_package(Boost COMPONENTS date_time REQUIRED)
find_package(Boost COMPONENTS date_time filesystem system thread program_options REQUIRED)
find_package(Threads)
include_directories(
${Boost_INLUDE_DIRS}
)
@@ -10,9 +11,16 @@ add_library(slbu-lib
SyslogMessage.cpp
UDPWriter.cpp
)
target_link_libraries(slbu-lib
${Boost_DATE_TIME_LIBRARY}
${Boost_THREAD_LIBRARY}
)
add_executable(syslog-bulk-uploader main.cpp)
target_link_libraries(syslog-bulk-uploader
${CMAKE_THREAD_LIBS_INIT}
${Boost_SYSTEM_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY}
slbu-lib
${Boost_DATE_TIME_LIBRARY}
)