kopia lustrzana https://github.com/f4exb/sdrangel
cmake files adjustment
rodzic
529d627019
commit
01591a0bd7
|
@ -1,21 +1,25 @@
|
|||
# Find Lime Suite
|
||||
|
||||
FIND_PATH (LIMESUITE_INCLUDE_DIR
|
||||
NAMES lime/LimeSuite.h
|
||||
PATHS
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
)
|
||||
if (!LIMESUITE_INCLUDE_DIR)
|
||||
FIND_PATH (LIMESUITE_INCLUDE_DIR
|
||||
NAMES lime/LimeSuite.h
|
||||
PATHS
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
)
|
||||
endif()
|
||||
|
||||
FIND_LIBRARY (LIMESUITE_LIBRARY
|
||||
NAMES LimeSuite
|
||||
HINTS ${CMAKE_INSTALL_PREFIX}/lib
|
||||
${CMAKE_INSTALL_PREFIX}/lib64
|
||||
PATHS /usr/local/lib
|
||||
/usr/local/lib64
|
||||
/usr/lib
|
||||
/usr/lib64
|
||||
)
|
||||
if (!LIMESUITE_LIBRARY)
|
||||
FIND_LIBRARY (LIMESUITE_LIBRARY
|
||||
NAMES LimeSuite
|
||||
HINTS ${CMAKE_INSTALL_PREFIX}/lib
|
||||
${CMAKE_INSTALL_PREFIX}/lib64
|
||||
PATHS /usr/local/lib
|
||||
/usr/local/lib64
|
||||
/usr/lib
|
||||
/usr/lib64
|
||||
)
|
||||
endif()
|
||||
|
||||
IF (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
|
||||
SET(LIMESUITE_FOUND TRUE)
|
||||
|
|
|
@ -2,23 +2,23 @@ project(devices)
|
|||
|
||||
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)
|
||||
add_subdirectory(bladerf)
|
||||
add_subdirectory(hackrf)
|
||||
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)
|
||||
|
|
Ładowanie…
Reference in New Issue