Commit 0535039c24b926bd23710a95cb6c29e756e3fff8

Authored by Elena.Budnik
1 parent d050fc57

absent

Showing 1 changed file with 22 additions and 0 deletions   Show diff stats
cmake/modules/FindCSPICE.cmake 0 → 100644
... ... @@ -0,0 +1,22 @@
  1 +# - Try to find the cspice libraries
  2 +# Once done this will define
  3 +#
  4 +# libcspice_FOUND - flag that indicates cspice lib is installed
  5 +# libcspice_INCLUDE_DIR - the cspice lib include directory
  6 +# libcspice_LIBRARIES - the cspice lib library directory
  7 +
  8 +FIND_PATH(libcspice_INCLUDE_DIR SpiceSPK.h PATHS ${USERLOCAL_ROOT}/include/cspice/)
  9 +FIND_LIBRARY(libcspice_LIBRARIES NAMES cspice PATHS ${USERLOCAL_ROOT}/lib )
  10 +
  11 +# set FOUND flag
  12 +IF(libcspice_INCLUDE_DIR AND libcspice_LIBRARIES)
  13 + SET(libcspice_FOUND 1)
  14 + if(NOT libcspice_FIND_QUIETLY)
  15 + message(STATUS "Found libcspice: ${libcspice_LIBRARIES}")
  16 + endif(NOT libcspice_FIND_QUIETLY)
  17 +ELSE(libcspice_INCLUDE_DIR AND libcspice_LIBRARIES)
  18 + SET(libcspice_FOUND 0 CACHE BOOL "Not found libcspice library")
  19 + message(STATUS "NOT Found libcspice, disabling it")
  20 +ENDIF(libcspice_INCLUDE_DIR AND libcspice_LIBRARIES)
  21 +
  22 +MARK_AS_ADVANCED(libcspice_INCLUDE_DIR libcspice_LIBRARIES)
... ...