aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Findlog4cpp.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cmake/Findlog4cpp.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/Findlog4cpp.cmake b/cmake/Findlog4cpp.cmake
new file mode 100644
index 00000000..c96b1c78
--- /dev/null
+++ b/cmake/Findlog4cpp.cmake
@@ -0,0 +1,7 @@
+FIND_PATH(LOG4CPP_INCLUDE_DIRS log4cpp/FileAppender.hh)
+FIND_LIBRARY(LOG4CPP_LIBRARY NAMES liblog4cpp.so)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(LOG4CPP DEFAULT_MSG LOG4CPP_LIBRARY LOG4CPP_INCLUDE_DIRS)
+
+MARK_AS_ADVANCED(LOG4CPP_INCLUDE_DIRS LOG4CPP_LIBRARY)