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