File: FindSOFA.cmake

package info (click to toggle)
casacore 3.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,912 kB
  • sloc: cpp: 471,569; fortran: 16,372; ansic: 7,416; yacc: 4,714; lex: 2,346; sh: 1,865; python: 629; perl: 531; sed: 499; csh: 201; makefile: 32
file content (21 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# - Try to find SOFA: the IAU Standards of Fundamental Astronomy libraries
# Variables used by this module:
#  SOFA_ROOT_DIR     - SOFA root directory
# Variables defined by this module:
#  SOFA_FOUND        - system has SOFA
#  SOFA_LIBRARY      - the SOFA library (cached)
#  SOFA_LIBRARIES    - the SOFA libraries
#                        (identical to SOFA_LIBRARY)

if(NOT SOFA_FOUND)

  find_library(SOFA_LIBRARY sofa
    HINTS ${SOFA_ROOT_DIR} PATH_SUFFIXES lib)
  mark_as_advanced(SOFA_LIBRARY)

  include(FindPackageHandleStandardArgs)
  find_package_handle_standard_args(SOFA DEFAULT_MSG SOFA_LIBRARY)

  set(SOFA_LIBRARIES ${SOFA_LIBRARY})

endif(NOT SOFA_FOUND)