1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

cmake files adjustment

This commit is contained in:
f4exb 2017-05-08 18:30:52 +02:00
parent 529d627019
commit 01591a0bd7
2 changed files with 34 additions and 30 deletions

View File

@ -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)

View File

@ -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)