mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 01:18:38 -05:00
Add atpdec and sgp4 cmake scripts
This commit is contained in:
parent
0ee1fcabbd
commit
ef4544b640
@ -367,6 +367,8 @@ else()
|
||||
find_package(LibMbe)
|
||||
find_package(SerialDV REQUIRED)
|
||||
find_package(LibDSDcc)
|
||||
find_package(Sgp4)
|
||||
find_package(AptDec)
|
||||
endif()
|
||||
|
||||
# Devices
|
||||
|
29
cmake/Modules/FindAptDec.cmake
Normal file
29
cmake/Modules/FindAptDec.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
IF(NOT APT_FOUND)
|
||||
INCLUDE(FindPkgConfig)
|
||||
PKG_CHECK_MODULES(PC_APT apt)
|
||||
|
||||
FIND_PATH(
|
||||
APT_INCLUDE_DIR
|
||||
NAMES apt.h
|
||||
HINTS ${APT_DIR}/include
|
||||
PATHS /usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
FIND_LIBRARY(
|
||||
APT_LIBRARIES
|
||||
NAMES apt
|
||||
HINTS ${APT_DIR}/lib
|
||||
PATHS /usr/local/lib
|
||||
/usr/lib
|
||||
/usr/lib64
|
||||
)
|
||||
|
||||
message(STATUS "APT LIBRARIES " ${APT_LIBRARIES})
|
||||
message(STATUS "APT INCLUDE DIRS " ${APT_INCLUDE_DIR})
|
||||
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(APT DEFAULT_MSG APT_LIBRARIES APT_INCLUDE_DIR)
|
||||
MARK_AS_ADVANCED(APT_LIBRARIES APT_INCLUDE_DIR)
|
||||
|
||||
ENDIF(NOT APT_FOUND)
|
29
cmake/Modules/FindSgp4.cmake
Normal file
29
cmake/Modules/FindSgp4.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
IF(NOT SGP4_FOUND)
|
||||
INCLUDE(FindPkgConfig)
|
||||
PKG_CHECK_MODULES(PC_SGP4 sgp4)
|
||||
|
||||
FIND_PATH(
|
||||
SGP4_INCLUDE_DIR
|
||||
NAMES SGP4/SGP4.h
|
||||
HINTS ${SGP4_DIR}/include
|
||||
PATHS /usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
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)
|
Loading…
Reference in New Issue
Block a user