cmake files adjustment

pull/27/head
f4exb 2017-05-08 18:30:52 +02:00
rodzic 529d627019
commit 01591a0bd7
2 zmienionych plików z 34 dodań i 30 usunięć

Wyświetl plik

@ -1,21 +1,25 @@
# Find Lime Suite # Find Lime Suite
FIND_PATH (LIMESUITE_INCLUDE_DIR if (!LIMESUITE_INCLUDE_DIR)
NAMES lime/LimeSuite.h FIND_PATH (LIMESUITE_INCLUDE_DIR
PATHS NAMES lime/LimeSuite.h
/usr/include PATHS
/usr/local/include /usr/include
) /usr/local/include
)
endif()
FIND_LIBRARY (LIMESUITE_LIBRARY if (!LIMESUITE_LIBRARY)
NAMES LimeSuite FIND_LIBRARY (LIMESUITE_LIBRARY
HINTS ${CMAKE_INSTALL_PREFIX}/lib NAMES LimeSuite
${CMAKE_INSTALL_PREFIX}/lib64 HINTS ${CMAKE_INSTALL_PREFIX}/lib
PATHS /usr/local/lib ${CMAKE_INSTALL_PREFIX}/lib64
/usr/local/lib64 PATHS /usr/local/lib
/usr/lib /usr/local/lib64
/usr/lib64 /usr/lib
) /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)

Wyświetl plik

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