cmake: Export non-default libbladerf driver path

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

@ -8,16 +8,19 @@
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
HINTS $ENV{BLADERF_DIR}/include
PATHS ${BLADERF_PKG_INCLUDE_DIRS}
/usr/include /usr/include
/usr/local/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
PATHS ${BLADERF_PKG_LIBRARY_DIRS}
/usr/lib /usr/lib
/usr/local/lib /usr/local/lib
) )

Loading…
Cancel
Save