2018-10-29 11:39:25 -04:00
|
|
|
# Find Soapy SDR
|
|
|
|
|
|
|
|
if (NOT SOAPYSDR_INCLUDE_DIR)
|
2019-01-02 15:33:45 -05:00
|
|
|
find_path (SOAPYSDR_INCLUDE_DIR
|
2018-10-29 11:39:25 -04:00
|
|
|
NAMES SoapySDR/Version.h
|
2019-01-02 15:33:45 -05:00
|
|
|
PATHS ${SOAPYSDR_DIR}/include
|
|
|
|
/usr/include
|
|
|
|
/usr/local/include
|
2018-10-29 11:39:25 -04:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT SOAPYSDR_LIBRARY)
|
2019-01-02 15:33:45 -05:00
|
|
|
find_library (SOAPYSDR_LIBRARY
|
2018-10-29 11:39:25 -04:00
|
|
|
NAMES SoapySDR
|
|
|
|
HINTS ${CMAKE_INSTALL_PREFIX}/lib
|
|
|
|
${CMAKE_INSTALL_PREFIX}/lib64
|
2019-01-02 15:33:45 -05:00
|
|
|
PATHS ${SOAPYSDR_DIR}/lib
|
|
|
|
${SOAPYSDR_DIR}/lib64
|
|
|
|
/usr/local/lib
|
2018-10-29 11:39:25 -04:00
|
|
|
/usr/local/lib64
|
|
|
|
/usr/lib
|
|
|
|
/usr/lib64
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (SOAPYSDR_INCLUDE_DIR AND SOAPYSDR_LIBRARY)
|
2019-01-02 15:33:45 -05:00
|
|
|
set(SOAPYSDR_FOUND TRUE)
|
2018-10-29 11:39:25 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (SOAPYSDR_FOUND)
|
2019-01-02 15:33:45 -05:00
|
|
|
message (STATUS "Found SoapySDR: ${SOAPYSDR_INCLUDE_DIR}, ${SOAPYSDR_LIBRARY}")
|
2018-10-29 11:39:25 -04:00
|
|
|
else()
|
2019-01-02 15:33:45 -05:00
|
|
|
message (STATUS "Could not find SoapySDR")
|
2018-10-29 11:39:25 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
mark_as_advanced(SOAPYSDR_INCLUDE_DIR SOAPYSDR_LIBRARY)
|