forked from f4exb/sdrangel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |