2015-06-07 01:30:28 +00:00
|
|
|
if(NOT LIBBLADERF_FOUND)
|
|
|
|
|
|
|
|
pkg_check_modules (LIBBLADERF_PKG libbladeRF)
|
|
|
|
find_path(LIBBLADERF_INCLUDE_DIR NAMES libbladeRF.h
|
|
|
|
PATHS
|
|
|
|
${LIBBLADERF_PKG_INCLUDE_DIRS}
|
|
|
|
/usr/include
|
|
|
|
/usr/local/include
|
|
|
|
)
|
|
|
|
|
|
|
|
find_library(LIBBLADERF_LIBRARIES NAMES bladeRF
|
|
|
|
PATHS
|
|
|
|
${LIBBLADERF_PKG_LIBRARY_DIRS}
|
|
|
|
/usr/lib
|
|
|
|
/usr/local/lib
|
|
|
|
)
|
|
|
|
|
|
|
|
if(LIBBLADERF_INCLUDE_DIR AND LIBBLADERF_LIBRARIES)
|
|
|
|
set(LIBBLADERF_FOUND TRUE CACHE INTERNAL "libbladerf found")
|
|
|
|
message(STATUS "Found libbladerf: ${LIBBLADERF_INCLUDE_DIR}, ${LIBBLADERF_LIBRARIES}")
|
|
|
|
else(LIBBLADERF_INCLUDE_DIR AND LIBBLADERF_LIBRARIES)
|
|
|
|
set(LIBBLADERF_FOUND FALSE CACHE INTERNAL "libbladerf found")
|
|
|
|
message(STATUS "libbladerf not found.")
|
|
|
|
endif(LIBBLADERF_INCLUDE_DIR AND LIBBLADERF_LIBRARIES)
|
|
|
|
|
|
|
|
mark_as_advanced(LIBBLADERF_INCLUDE_DIR LIBBLADERF_LIBRARIES)
|
|
|
|
|
2015-12-27 01:47:38 +00:00
|
|
|
endif(NOT LIBBLADERF_FOUND)
|