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

30 lines
770 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
2022-11-13 09:10:08 -05:00
HINTS ${SGP4_DIR}/include/libsgp4
PATHS /usr/local/include/libsgp4
/usr/include/libsgp4
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)