| Line |  | 
|---|
| 1 | # - Try to find SBIG (Santa Barbara Instruments Group Library for CCDs & Filter Wheels). | 
|---|
| 2 | # Once done this will define | 
|---|
| 3 | # | 
|---|
| 4 | #  SBIG_FOUND - system has SBIG | 
|---|
| 5 | #  SBIG_LIBRARIES - Link these to use SBIG | 
|---|
| 6 |  | 
|---|
| 7 | # Copyright (c) 2006, Jasem Mutlaq <mutlaqja@ikarustech.com> | 
|---|
| 8 | # Based on FindLibfacile by Carsten Niehaus, <cniehaus@gmx.de> | 
|---|
| 9 | # | 
|---|
| 10 | # Redistribution and use is allowed according to the terms of the BSD license. | 
|---|
| 11 | # For details see the accompanying COPYING-CMAKE-SCRIPTS file. | 
|---|
| 12 |  | 
|---|
| 13 | if (SBIG_LIBRARIES) | 
|---|
| 14 |  | 
|---|
| 15 | # in cache already | 
|---|
| 16 | set(SBIG_FOUND TRUE) | 
|---|
| 17 | message(STATUS "Found SBIG: ${SBIG_LIBRARIES}") | 
|---|
| 18 |  | 
|---|
| 19 | else (SBIG_LIBRARIES) | 
|---|
| 20 |  | 
|---|
| 21 | find_library(SBIG_LIBRARIES NAMES sbigudrv | 
|---|
| 22 | PATHS | 
|---|
| 23 | ${_obLinkDir} | 
|---|
| 24 | ${GNUWIN32_DIR}/lib | 
|---|
| 25 | ) | 
|---|
| 26 |  | 
|---|
| 27 | set(CMAKE_REQUIRED_LIBRARIES ${SBIG_LIBRARIES}) | 
|---|
| 28 |  | 
|---|
| 29 | if(SBIG_LIBRARIES) | 
|---|
| 30 | set(SBIG_FOUND TRUE) | 
|---|
| 31 | else (SBIG_LIBRARIES) | 
|---|
| 32 | set(SBIG_FOUND FALSE) | 
|---|
| 33 | endif(SBIG_LIBRARIES) | 
|---|
| 34 |  | 
|---|
| 35 | if (SBIG_FOUND) | 
|---|
| 36 | if (NOT SBIG_FIND_QUIETLY) | 
|---|
| 37 | message(STATUS "Found SBIG: ${SBIG_LIBRARIES}") | 
|---|
| 38 | endif (NOT SBIG_FIND_QUIETLY) | 
|---|
| 39 | else (SBIG_FOUND) | 
|---|
| 40 | if (SBIG_FIND_REQUIRED) | 
|---|
| 41 | message(FATAL_ERROR "SBIG not found. Please install SBIG library. http://indi.sf.net") | 
|---|
| 42 | endif (SBIG_FIND_REQUIRED) | 
|---|
| 43 | endif (SBIG_FOUND) | 
|---|
| 44 |  | 
|---|
| 45 | mark_as_advanced(SBIG_LIBRARIES) | 
|---|
| 46 |  | 
|---|
| 47 | endif (SBIG_LIBRARIES) | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.