Debian Codegraph @

cmake_modules/FindNNCAM.cmake

raw
1 # - Try to find NNCAM Camera Library
2 # Once done this will define
3 #
4 # NNCAM_FOUND - system has Levenhuk
5 # NNCAM_INCLUDE_DIR - the Levenhuk include directory
6 # NNCAM_LIBRARIES - Link these to use Levenhuk
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 (NNCAM_INCLUDE_DIR AND NNCAM_LIBRARIES)
12
13 # in cache already
14 set(NNCAM_FOUND TRUE)
15 message(STATUS "Found libnncam: ${NNCAM_LIBRARIES}")
16
17 else (NNCAM_INCLUDE_DIR AND NNCAM_LIBRARIES)
18
19 find_path(NNCAM_INCLUDE_DIR nncam.h
20 PATH_SUFFIXES libnncam
21 ${_obIncDir}
22 ${GNUWIN32_DIR}/include
23 )
24
25 find_library(NNCAM_LIBRARIES NAMES nncam
26 PATHS
27 ${_obLinkDir}
28 ${GNUWIN32_DIR}/lib
29 )
30
31 if(NNCAM_INCLUDE_DIR AND NNCAM_LIBRARIES)
32 set(NNCAM_FOUND TRUE)
33 else (NNCAM_INCLUDE_DIR AND NNCAM_LIBRARIES)
34 set(NNCAM_FOUND FALSE)
35 endif(NNCAM_INCLUDE_DIR AND NNCAM_LIBRARIES)
36
37 if (NNCAM_FOUND)
38 if (NOT NNCAM_FIND_QUIETLY)
39 message(STATUS "Found NNCAM: ${NNCAM_LIBRARIES}")
40 endif (NOT NNCAM_FIND_QUIETLY)
41 else (NNCAM_FOUND)
42 if (NNCAM_FIND_REQUIRED)
43 message(FATAL_ERROR "NNCAM not found. Please install NNCAM Library http://www.indilib.org")
44 endif (NNCAM_FIND_REQUIRED)
45 endif (NNCAM_FOUND)
46
47 mark_as_advanced(NNCAM_INCLUDE_DIR NNCAM_LIBRARIES)
48
49 endif (NNCAM_INCLUDE_DIR AND NNCAM_LIBRARIES)