summaryrefslogtreecommitdiffstats
path: root/cmake_modules/FindARAVIS.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake_modules/FindARAVIS.cmake')
-rw-r--r--cmake_modules/FindARAVIS.cmake43
1 files changed, 43 insertions, 0 deletions
diff --git a/cmake_modules/FindARAVIS.cmake b/cmake_modules/FindARAVIS.cmake
new file mode 100644
index 0000000..5bd2d3c
--- /dev/null
+++ b/cmake_modules/FindARAVIS.cmake
@@ -0,0 +1,43 @@
+# - Find the native sqlite3 includes and library
+#
+# This module defines
+# ARV_INCLUDE_DIR, where to find libgphoto2 header files
+# ARV_LIBRARIES, the libraries to link against to use libgphoto2
+# ARV_FOUND, If false, do not try to use libgphoto2.
+# ARV_VERSION_STRING, e.g. 2.4.14
+# ARV_VERSION_MAJOR, e.g. 2
+# ARV_VERSION_MINOR, e.g. 4
+# ARV_VERSION_PATCH, e.g. 14
+#
+# also defined, but not for general use are
+# ARV_LIBRARY, where to find the sqlite3 library.
+
+
+#=============================================================================
+# Copyright 2010 henrik andersson
+#=============================================================================
+
+SET(ARV_FIND_REQUIRED ${Arv_FIND_REQUIRED})
+
+find_path(ARV_INCLUDE_DIR aravis-0.8/arv.h)
+mark_as_advanced(ARV_INCLUDE_DIR)
+
+set(ARV_NAMES ${ARV_NAMES} aravis-0.8)
+find_library(ARV_LIBRARY NAMES ${ARV_NAMES} )
+mark_as_advanced(ARV_LIBRARY)
+
+set(ARV_VERSION_MAJOR "0")
+set(ARV_VERSION_MINOR "8")
+set(ARV_VERSION_STRING "${ARV_VERSION_MAJOR}.${ARV_VERSION_MINOR}")
+
+# handle the QUIETLY and REQUIRED arguments and set ARV_FOUND to TRUE if
+# all listed variables are TRUE
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(ARV DEFAULT_MSG ARV_LIBRARY ARV_INCLUDE_DIR)
+
+IF(ARV_FOUND)
+ #SET(Arv_LIBRARIES ${ARV_LIBRARY})
+ SET(Arv_LIBRARIES "aravis-0.8")
+ SET(Arv_INCLUDE_DIRS "${ARV_INCLUDE_DIR}/aravis-0.8")
+ MESSAGE (STATUS "Found aravis: ${Arv_LIBRARIES} ${Arv_INCLUDE_DIRS}")
+ENDIF(ARV_FOUND)