summaryrefslogtreecommitdiffstats
path: root/cmake/FindIPE.cmake
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 09:04:26 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 09:04:26 +0100
commitc3b3cfd97b51bf6e6970156c92506cb6fa037b65 (patch)
tree20d7f07a0e394647e0e6ae162937b27c1ff2c0a3 /cmake/FindIPE.cmake
parent432d6083dd9cbe50579780c88206733776898e9d (diff)
downloaduca-c3b3cfd97b51bf6e6970156c92506cb6fa037b65.tar.gz
uca-c3b3cfd97b51bf6e6970156c92506cb6fa037b65.tar.bz2
uca-c3b3cfd97b51bf6e6970156c92506cb6fa037b65.tar.xz
uca-c3b3cfd97b51bf6e6970156c92506cb6fa037b65.zip
Prepare integration of IPE camera
Diffstat (limited to 'cmake/FindIPE.cmake')
-rw-r--r--cmake/FindIPE.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/FindIPE.cmake b/cmake/FindIPE.cmake
new file mode 100644
index 0000000..3667235
--- /dev/null
+++ b/cmake/FindIPE.cmake
@@ -0,0 +1,19 @@
+# Try to find user-space driver for the IPE camera
+#
+# Defines
+#
+# IPE_FOUND - system has libpcidriver
+# IPE_INCLUDE_DIRS - libpci include directory
+# IPE_LIBRARIES - pci library
+
+find_package(PackageHandleStandardArgs)
+
+find_path(IPE_INCLUDE_DIRS pcilib.h)
+find_library(IPE_LIBRARIES pcidriver)
+
+find_package_handle_standard_args(IPE DEFAULT_MSG IPE_LIBRARIES IPE_INCLUDE_DIRS)
+
+mark_as_advanced(
+ IPE_INCLUDE_DIRS
+ IPE_LIBRARIES
+)