diff --git a/CMakeLists.txt b/CMakeLists.txt index 84fa46f15f98fa122fbf8da681fa2f7fb942584b..98d4016fdd9a9662fc46e8eabcb2b1b6e872a986 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,9 @@ find_package(Protobuf REQUIRED) set(IRCClientQt_DIR "${CMAKE_SOURCE_DIR}/cmake_modules") find_package(IRCClientQt) +set(log4cxx_DIR "${CMAKE_SOURCE_DIR}/cmake_modules") +find_package(log4cxx) + find_package(Doxygen) INCLUDE(FindQt4) @@ -76,6 +79,13 @@ else() message("IRC plugin : no (install libircclient-qt and Google Protocol Buffers)") endif() +if (LOG4CXX_FOUND) + message("Logging : yes") + include_directories(${LOG4CXX_INCLUDE_DIR}) +else() + message(FATAL_ERROR "Logging : no (install log4cxx-devel)") +endif() + if(CMAKE_BUILD_TYPE MATCHES Debug) ADD_DEFINITIONS(-O0) ADD_DEFINITIONS(-ggdb)