kopia lustrzana https://github.com/f4exb/sdrangel
cmake files adjustment
rodzic
529d627019
commit
01591a0bd7
|
@ -1,13 +1,16 @@
|
||||||
# Find Lime Suite
|
# Find Lime Suite
|
||||||
|
|
||||||
FIND_PATH (LIMESUITE_INCLUDE_DIR
|
if (!LIMESUITE_INCLUDE_DIR)
|
||||||
|
FIND_PATH (LIMESUITE_INCLUDE_DIR
|
||||||
NAMES lime/LimeSuite.h
|
NAMES lime/LimeSuite.h
|
||||||
PATHS
|
PATHS
|
||||||
/usr/include
|
/usr/include
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
FIND_LIBRARY (LIMESUITE_LIBRARY
|
if (!LIMESUITE_LIBRARY)
|
||||||
|
FIND_LIBRARY (LIMESUITE_LIBRARY
|
||||||
NAMES LimeSuite
|
NAMES LimeSuite
|
||||||
HINTS ${CMAKE_INSTALL_PREFIX}/lib
|
HINTS ${CMAKE_INSTALL_PREFIX}/lib
|
||||||
${CMAKE_INSTALL_PREFIX}/lib64
|
${CMAKE_INSTALL_PREFIX}/lib64
|
||||||
|
@ -15,7 +18,8 @@ FIND_LIBRARY (LIMESUITE_LIBRARY
|
||||||
/usr/local/lib64
|
/usr/local/lib64
|
||||||
/usr/lib
|
/usr/lib
|
||||||
/usr/lib64
|
/usr/lib64
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
IF (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
|
IF (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
|
||||||
SET(LIMESUITE_FOUND TRUE)
|
SET(LIMESUITE_FOUND TRUE)
|
||||||
|
|
|
@ -2,23 +2,23 @@ project(devices)
|
||||||
|
|
||||||
find_package(LibUSB)
|
find_package(LibUSB)
|
||||||
|
|
||||||
find_package(LibBLADERF)
|
|
||||||
if(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
|
||||||
add_subdirectory(bladerf)
|
|
||||||
endif(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
|
||||||
|
|
||||||
find_package(LibHACKRF)
|
|
||||||
if(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
|
||||||
add_subdirectory(hackrf)
|
|
||||||
endif(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
|
||||||
|
|
||||||
find_package(LimeSuite)
|
|
||||||
if(LIBUSB_FOUND AND LIMESUITE_FOUND)
|
|
||||||
add_subdirectory(limesdr)
|
|
||||||
endif(LIBUSB_FOUND AND LIMESUITE_FOUND)
|
|
||||||
|
|
||||||
if (BUILD_DEBIAN)
|
if (BUILD_DEBIAN)
|
||||||
add_subdirectory(bladerf)
|
add_subdirectory(bladerf)
|
||||||
add_subdirectory(hackrf)
|
add_subdirectory(hackrf)
|
||||||
add_subdirectory(limesdr)
|
add_subdirectory(limesdr)
|
||||||
|
else(BUILD_DEBIAN)
|
||||||
|
find_package(LibBLADERF)
|
||||||
|
if(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
||||||
|
add_subdirectory(bladerf)
|
||||||
|
endif(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
||||||
|
|
||||||
|
find_package(LibHACKRF)
|
||||||
|
if(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
||||||
|
add_subdirectory(hackrf)
|
||||||
|
endif(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
||||||
|
|
||||||
|
find_package(LimeSuite)
|
||||||
|
if(LIBUSB_FOUND AND LIMESUITE_FOUND)
|
||||||
|
add_subdirectory(limesdr)
|
||||||
|
endif(LIBUSB_FOUND AND LIMESUITE_FOUND)
|
||||||
endif (BUILD_DEBIAN)
|
endif (BUILD_DEBIAN)
|
||||||
|
|
Ładowanie…
Reference in New Issue