File: FindCFITSIO.cmake

package info (click to toggle)
ccfits 2.5%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 3,620 kB
  • sloc: cpp: 15,148; sh: 10,115; makefile: 91
file content (31 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (4)
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
# Find the CFITSIO library
#
# This module defines these variables:
#
#   CFITSIO_FOUND
#      True if the CFITSIO library was found.
#   CFITSIO_LIBRARY
#      The location of the CFITSIO library.
#   CFITSIO_INCLUDE_DIR
#      The include path of the CFITSIO library. 

#
# Find the header file
#
FIND_PATH(CFITSIO_INCLUDE_DIR fitsio.h)

#
# Find the library
#
FIND_LIBRARY(CFITSIO_LIBRARY cfitsio)

SET(CFITSIO_FOUND false)
IF(CFITSIO_INCLUDE_DIR AND CFITSIO_LIBRARY)
   SET(CFITSIO_FOUND true)
ENDIF(CFITSIO_INCLUDE_DIR AND CFITSIO_LIBRARY)

IF(CFITSIO_FOUND)
   MESSAGE(STATUS "Found CFITSIO: ${CFITSIO_LIBRARY}")
ELSE(CFITSIO_FOUND)
   MESSAGE(FATAL_ERROR "Could not find the CFITSIO library")
ENDIF(CFITSIO_FOUND)