Debian Codegraph @

cmake_modules/FindARAVIS.cmake

raw
1 # - Find the native sqlite3 includes and library
2 #
3 # This module defines
4 # ARV_INCLUDE_DIR, where to find libgphoto2 header files
5 # ARV_LIBRARIES, the libraries to link against to use libgphoto2
6 # ARV_FOUND, If false, do not try to use libgphoto2.
7 # ARV_VERSION_STRING, e.g. 2.4.14
8 # ARV_VERSION_MAJOR, e.g. 2
9 # ARV_VERSION_MINOR, e.g. 4
10 # ARV_VERSION_PATCH, e.g. 14
11 #
12 # also defined, but not for general use are
13 # ARV_LIBRARY, where to find the sqlite3 library.
14
15
16 #=============================================================================
17 # Copyright 2010 henrik andersson
18 #=============================================================================
19
20 SET(ARV_FIND_REQUIRED ${Arv_FIND_REQUIRED})
21
22 find_path(ARV_INCLUDE_DIR aravis-0.8/arv.h)
23 mark_as_advanced(ARV_INCLUDE_DIR)
24
25 set(ARV_NAMES ${ARV_NAMES} aravis-0.8)
26 find_library(ARV_LIBRARY NAMES ${ARV_NAMES} )
27 mark_as_advanced(ARV_LIBRARY)
28
29 set(ARV_VERSION_MAJOR "0")
30 set(ARV_VERSION_MINOR "8")
31 set(ARV_VERSION_STRING "${ARV_VERSION_MAJOR}.${ARV_VERSION_MINOR}")
32
33 # handle the QUIETLY and REQUIRED arguments and set ARV_FOUND to TRUE if
34 # all listed variables are TRUE
35 include(FindPackageHandleStandardArgs)
36 find_package_handle_standard_args(ARV DEFAULT_MSG ARV_LIBRARY ARV_INCLUDE_DIR)
37
38 IF(ARV_FOUND)
39 #SET(Arv_LIBRARIES ${ARV_LIBRARY})
40 SET(Arv_LIBRARIES "aravis-0.8")
41 SET(Arv_INCLUDE_DIRS "${ARV_INCLUDE_DIR}/aravis-0.8")
42 MESSAGE (STATUS "Found aravis: ${Arv_LIBRARIES} ${Arv_INCLUDE_DIRS}")
43 ENDIF(ARV_FOUND)