diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-09-22 16:05:07 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-09-22 16:05:07 +0200 |
| commit | cfae7b4dd30282209debec1d7680be8d974d0e46 (patch) | |
| tree | c8e64797f0cdf74bff367b057826f81b512db624 /liblog/CMakeLists.txt | |
| parent | f77ce5a0226014c811a46d8ab1ba8c9164768ed3 (diff) | |
| download | cmix-cfae7b4dd30282209debec1d7680be8d974d0e46.tar.gz cmix-cfae7b4dd30282209debec1d7680be8d974d0e46.tar.bz2 cmix-cfae7b4dd30282209debec1d7680be8d974d0e46.zip | |
Added a logging facility using boost::log::trivial.
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 |
