summaryrefslogtreecommitdiffstats
path: root/cmake/FindPCO.cmake
diff options
context:
space:
mode:
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
+)