Debian Codegraph @

cmake_modules/FindSVBONY.cmake

raw
1 # - Try to find SVBONY Library
2 # Once done this will define
3 #
4 # SVBONY_FOUND - system has SVBONY CCD
5 # SVBONY_INCLUDE_DIR - the SVBONY CCD include directory
6 # SVBONY_LIBRARIES - Link these to use SVBONY CCD
7
8 # Redistribution and use is allowed according to the terms of the BSD license.
9 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
10
11 if (SVBONY_INCLUDE_DIR AND SVBONY_LIBRARIES)
12
13 # in cache already
14 set(SVBONY_FOUND TRUE)
15 message(STATUS "Found libsvbony: ${SVBONY_LIBRARIES}")
16
17 else (SVBONY_INCLUDE_DIR AND SVBONY_LIBRARIES)
18
19 # find headers
20 find_path(SVBONY_INCLUDE_DIR NAMES SVBCameraSDK.h
21 PATH_SUFFIXES libsvbony
22 ${_obIncDir}
23 ${GNUWIN32_DIR}/include
24 )
25
26 # find libraries
27 find_library(SVBONY_LIBRARIES NAMES SVBCameraSDK
28 PATHS
29 ${_obLinkDir}
30 ${GNUWIN32_DIR}/lib
31 )
32
33 if(SVBONY_INCLUDE_DIR AND SVBONY_LIBRARIES)
34 set(SVBONY_FOUND TRUE)
35 else (SVBONY_INCLUDE_DIR AND SVBONY_LIBRARIES)
36 set(SVBONY_FOUND FALSE)
37 endif(SVBONY_INCLUDE_DIR AND SVBONY_LIBRARIES)
38
39
40 if (SVBONY_FOUND)
41 if (NOT SVBONY_FIND_QUIETLY)
42 message(STATUS "Found SVBONY libraries : ${SVBONY_LIBRARIES}")
43 endif (NOT SVBONY_FIND_QUIETLY)
44 else (SVBONY_FOUND)
45 if (SVBONY_FIND_REQUIRED)
46 message(FATAL_ERROR "SVBONY libraries not found. Please install libsvbony http://www.indilib.org")
47 endif (SVBONY_FIND_REQUIRED)
48 endif (SVBONY_FOUND)
49
50 mark_as_advanced(SVBONY_INCLUDE_DIR SVBONY_LIBRARIES)
51
52 endif (SVBONY_INCLUDE_DIR AND SVBONY_LIBRARIES)