mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
916 B
CMake
32 lines
916 B
CMake
8 years ago
|
|
||
|
message(STATUS "FINDING SOAPY.")
|
||
|
if(NOT SOAPYSDR_FOUND)
|
||
|
pkg_check_modules (SOAPYSDR_PKG SoapySDR)
|
||
|
|
||
|
find_path(SOAPYSDR_INCLUDE_DIRS
|
||
|
NAMES Device.h
|
||
|
PATHS ${SOAPYSDR_PKG_INCLUDE_DIRS}
|
||
|
/usr/include/SoapySDR
|
||
|
/usr/include/local/SoapySDR
|
||
|
)
|
||
|
|
||
|
find_library(SOAPYSDR_LIBRARIES
|
||
|
NAMES SoapySDR
|
||
|
PATHS ${LIMESDR_PKG_LIBRARY_DIRS}
|
||
|
/usr/lib
|
||
|
/usr/local/lib
|
||
|
|
||
|
)
|
||
|
|
||
|
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)
|