# - Try to find SBIG (Santa Barbara Instruments Group Library for CCDs & Filter Wheels). # Once done this will define # # SBIG_FOUND - system has SBIG # SBIG_LIBRARIES - Link these to use SBIG # Copyright (c) 2006, Jasem Mutlaq # Based on FindLibfacile by Carsten Niehaus, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (SBIG_LIBRARIES) # in cache already set(SBIG_FOUND TRUE) message(STATUS "Found SBIG: ${SBIG_LIBRARIES}") else (SBIG_LIBRARIES) find_library(SBIG_LIBRARIES NAMES sbigudrv PATHS ${_obLinkDir} ${GNUWIN32_DIR}/lib ) set(CMAKE_REQUIRED_LIBRARIES ${SBIG_LIBRARIES}) if(SBIG_LIBRARIES) set(SBIG_FOUND TRUE) else (SBIG_LIBRARIES) set(SBIG_FOUND FALSE) endif(SBIG_LIBRARIES) if (SBIG_FOUND) if (NOT SBIG_FIND_QUIETLY) message(STATUS "Found SBIG: ${SBIG_LIBRARIES}") endif (NOT SBIG_FIND_QUIETLY) else (SBIG_FOUND) if (SBIG_FIND_REQUIRED) message(FATAL_ERROR "SBIG not found. Please install SBIG library. http://indi.sf.net") endif (SBIG_FIND_REQUIRED) endif (SBIG_FOUND) mark_as_advanced(SBIG_LIBRARIES) endif (SBIG_LIBRARIES)