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,12 +1,15 @@
# Find Lime Suite # Find Lime Suite
if (!LIMESUITE_INCLUDE_DIR)
FIND_PATH (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()
if (!LIMESUITE_LIBRARY)
FIND_LIBRARY (LIMESUITE_LIBRARY FIND_LIBRARY (LIMESUITE_LIBRARY
NAMES LimeSuite NAMES LimeSuite
HINTS ${CMAKE_INSTALL_PREFIX}/lib HINTS ${CMAKE_INSTALL_PREFIX}/lib
@ -16,6 +19,7 @@ FIND_LIBRARY (LIMESUITE_LIBRARY
/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)

Wyświetl plik

@ -2,6 +2,11 @@ project(devices)
find_package(LibUSB) find_package(LibUSB)
if (BUILD_DEBIAN)
add_subdirectory(bladerf)
add_subdirectory(hackrf)
add_subdirectory(limesdr)
else(BUILD_DEBIAN)
find_package(LibBLADERF) find_package(LibBLADERF)
if(LIBUSB_FOUND AND LIBBLADERF_FOUND) if(LIBUSB_FOUND AND LIBBLADERF_FOUND)
add_subdirectory(bladerf) add_subdirectory(bladerf)
@ -16,9 +21,4 @@ find_package(LimeSuite)
if(LIBUSB_FOUND AND LIMESUITE_FOUND) if(LIBUSB_FOUND AND LIMESUITE_FOUND)
add_subdirectory(limesdr) add_subdirectory(limesdr)
endif(LIBUSB_FOUND AND LIMESUITE_FOUND) endif(LIBUSB_FOUND AND LIMESUITE_FOUND)
if (BUILD_DEBIAN)
add_subdirectory(bladerf)
add_subdirectory(hackrf)
add_subdirectory(limesdr)
endif (BUILD_DEBIAN) endif (BUILD_DEBIAN)