1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-05 00:11:16 -05:00
sdrangel/cmake/Modules/FindSgp4.cmake

30 lines
761 B
CMake
Raw Normal View History

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
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)