-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Pybombs support. Add SoapySDR support
- Loading branch information
Showing
12 changed files
with
308 additions
and
8 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
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
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,33 @@ | ||
message(STATUS "FINDING SOAPY.") | ||
if(NOT SOAPYSDR_FOUND) | ||
pkg_check_modules (SOAPYSDR_PKG SoapySDR) | ||
|
||
find_path(SOAPYSDR_INCLUDE_DIRS | ||
NAMES SoapySDR/Device.h | ||
HINTS $ENV{SOAPY_DIR}/include ${PYBOMBS_PREFIX}/include/SoapySDR | ||
PATHS ${SOAPYSDR_PKG_INCLUDE_DIRS} | ||
/usr/include | ||
/usr/local/include | ||
) | ||
|
||
find_library(SOAPYSDR_LIBRARIES | ||
NAMES SoapySDR | ||
HINTS $ENV{SOAPY_DIR}/lib ${PYBOMBS_PREFIX}/lib | ||
PATHS ${SOAPYSDR_PKG_LIBRARY_DIRS} | ||
/usr/lib | ||
/usr/local/lib | ||
/usr/lib/arm-linux-gnueabihf | ||
) | ||
|
||
|
||
if(SOAPYSDR_INCLUDE_DIRS AND SOAPYSDR_LIBRARIES) | ||
set(SOAPYSDR_FOUND TRUE CACHE INTERNAL "libSOAPYSDR found") | ||
message(STATUS "Found libSOAPYSDR: ${SOAPYSDR_INCLUDE_DIRS}, ${SOAPYSDR_LIBRARIES}") | ||
else(SOAPYSDR_INCLUDE_DIRS AND SOAPYSDR_LIBRARIES) | ||
set(SOAPYSDR_FOUND FALSE CACHE INTERNAL "libSOAPYSDR found") | ||
message(STATUS "libSOAPYSDR not found.") | ||
endif(SOAPYSDR_INCLUDE_DIRS AND SOAPYSDR_LIBRARIES) | ||
|
||
mark_as_advanced(SOAPYSDR_LIBRARIES SOAPYSDR_INCLUDE_DIRS) | ||
|
||
endif(NOT SOAPYSDR_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
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
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
Oops, something went wrong.