summaryrefslogtreecommitdiffstats
path: root/cmake/FindPCO.cmake
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-21 15:06:42 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-21 15:06:42 +0100
commit28619821bc90ed4c15844b2e6b6a5a2971ef5f2e (patch)
treec313b5b77087c18027d152c4c69c49b8ea0254d9 /cmake/FindPCO.cmake
downloadlibuca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.gz
libuca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.bz2
libuca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.xz
libuca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.zip
Initial commit
Diffstat (limited to 'cmake/FindPCO.cmake')
-rw-r--r--cmake/FindPCO.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/FindPCO.cmake b/cmake/FindPCO.cmake
new file mode 100644
index 0000000..86bbe9a
--- /dev/null
+++ b/cmake/FindPCO.cmake
@@ -0,0 +1,19 @@
+# Try to find libpco.so
+#
+# Defines
+#
+# PCO_FOUND - system has libpco
+# PCO_INCLUDE_DIRS - libpco include directory
+# PCO_LIBRARIES - pco library
+
+find_package(PackageHandleStandardArgs)
+
+find_path(PCO_INCLUDE_DIRS libpco/libpco.h)
+find_library(PCO_LIBRARIES pco)
+
+find_package_handle_standard_args(PCO DEFAULT_MSG PCO_LIBRARIES PCO_INCLUDE_DIRS)
+
+mark_as_advanced(
+ PCO_INCLUDE_DIRS
+ PCO_LIBRARIES
+)