2021-02-27 07:54:25 -05:00
|
|
|
IF(NOT SGP4_FOUND)
|
|
|
|
INCLUDE(FindPkgConfig)
|
|
|
|
PKG_CHECK_MODULES(PC_SGP4 sgp4)
|
|
|
|
|
|
|
|
FIND_PATH(
|
|
|
|
SGP4_INCLUDE_DIR
|
2021-02-27 15:47:34 -05:00
|
|
|
NAMES SGP4.h
|
|
|
|
HINTS ${SGP4_DIR}/include/SGP4
|
|
|
|
PATHS /usr/local/include/SGP4
|
|
|
|
/usr/include/SGP4
|
2021-02-27 07:54:25 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(
|
|
|
|
SGP4_LIBRARIES
|
|
|
|
NAMES sgp4s
|
|
|
|
HINTS ${SGP4_DIR}/lib
|
|
|
|
PATHS /usr/local/lib
|
|
|
|
/usr/lib
|
|
|
|
/usr/lib64
|
|
|
|
)
|
|
|
|
|
|
|
|
message(STATUS "SGP4 LIBRARIES " ${SGP4_LIBRARIES})
|
|
|
|
message(STATUS "SGP4 INCLUDE DIRS " ${SGP4_INCLUDE_DIR})
|
|
|
|
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SGP4 DEFAULT_MSG SGP4_LIBRARIES SGP4_INCLUDE_DIR)
|
|
|
|
MARK_AS_ADVANCED(SGP4_LIBRARIES SGP4_INCLUDE_DIR)
|
|
|
|
|
|
|
|
ENDIF(NOT SGP4_FOUND)
|