Commit 6b0b9917f94806376845683321b462860fdcdbfc
Exists in
master
and in
100 other branches
Merge branch 'master' of https://gitlab.irap.omp.eu/CDPP/AMDA_Kernel
Showing
1 changed file
with
22 additions
and
0 deletions
Show diff stats
... | ... | @@ -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) | ... | ... |