aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorKamil Rytarowski <kamil@mageia.org>2012-12-25 14:18:23 +0000
committerKamil Rytarowski <kamil@mageia.org>2012-12-25 14:18:23 +0000
commit2437820b0fd29fde81e4bd919adff80a1c87ead8 (patch)
tree05bb595b8b0af9ad1680d2dd3ecd781b2b36d07d /cmake
downloadmgasvnstats-2437820b0fd29fde81e4bd919adff80a1c87ead8.tar
mgasvnstats-2437820b0fd29fde81e4bd919adff80a1c87ead8.tar.gz
mgasvnstats-2437820b0fd29fde81e4bd919adff80a1c87ead8.tar.bz2
mgasvnstats-2437820b0fd29fde81e4bd919adff80a1c87ead8.tar.xz
mgasvnstats-2437820b0fd29fde81e4bd919adff80a1c87ead8.zip
Initial import.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindPugiXML.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/cmake/modules/FindPugiXML.cmake b/cmake/modules/FindPugiXML.cmake
new file mode 100644
index 0000000..585eb21
--- /dev/null
+++ b/cmake/modules/FindPugiXML.cmake
@@ -0,0 +1,27 @@
+# Copyrigt 2012 Kamil Rytarowski <kamil AT mageia DOT org>
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+find_path(PugiXML_INCLUDE_DIR /usr/include)
+
+find_library(PugiXML_LIBRARY
+ NAMES
+ "pugixml"
+ PATHS
+ /usr/lib
+ )
+
+if(PugiXML_LIBRARY AND PugiXML_INCLUDE_DIR)
+ set(PugiXML_FOUND 1)
+ mark_as_advanced(PugiXML_LIBRARY PugiXML_INCLUDE_DIR)
+else()
+ set(PugiXML_FOUND 0)
+endif()
+
+if(NOT PugiXML_FOUND)
+ if(PugiXML_FIND_REQUIRED)
+ message(FATAL_ERROR "PugiXML was not found.")
+ endif()
+endif() \ No newline at end of file