cmake: Export non-default libbladerf driver path

master
Nils Fürste 3 years ago committed by Andre Puschmann
parent 13d4fd174b
commit c177ed3331

@ -8,18 +8,21 @@
if(NOT BLADERF_FOUND) if(NOT BLADERF_FOUND)
pkg_check_modules (BLADERF_PKG libbladeRF) pkg_check_modules (BLADERF_PKG libbladeRF)
find_path(BLADERF_INCLUDE_DIRS NAMES libbladeRF.h
PATHS find_path(BLADERF_INCLUDE_DIRS
${BLADERF_PKG_INCLUDE_DIRS} NAMES libbladeRF.h
/usr/include HINTS $ENV{BLADERF_DIR}/include
/usr/local/include PATHS ${BLADERF_PKG_INCLUDE_DIRS}
/usr/include
/usr/local/include
) )
find_library(BLADERF_LIBRARIES NAMES bladeRF find_library(BLADERF_LIBRARIES
PATHS NAMES bladeRF
${BLADERF_PKG_LIBRARY_DIRS} HINTS $ENV{BLADERF_DIR}/lib
/usr/lib PATHS ${BLADERF_PKG_LIBRARY_DIRS}
/usr/local/lib /usr/lib
/usr/local/lib
) )
if(BLADERF_INCLUDE_DIRS AND BLADERF_LIBRARIES) if(BLADERF_INCLUDE_DIRS AND BLADERF_LIBRARIES)

Loading…
Cancel
Save