diff options
Diffstat (limited to 'liblog/CMakeLists.txt')
| -rw-r--r-- | liblog/CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/liblog/CMakeLists.txt b/liblog/CMakeLists.txt new file mode 100644 index 0000000..cb4ce84 --- /dev/null +++ b/liblog/CMakeLists.txt @@ -0,0 +1,24 @@ +find_package(Boost COMPONENTS log system REQUIRED) +find_package(Threads) + +add_library(log + logging.hpp logging.cpp +) + +target_include_directories(log + PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} +) + +target_compile_definitions(log + PUBLIC BOOST_LOG_DYN_LINK +) + +target_compile_options(log + PRIVATE -std=c++11 +) + +target_link_libraries(log + PRIVATE Boost::log + PRIVATE Boost::system + PUBLIC ${CMAKE_THREAD_LIBS_INIT} +)
\ No newline at end of file |
