From 9d2273841217e5a8ba054f2d0e4b515069fb807d Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 13 May 2019 00:35:03 +0200 Subject: [PATCH] Perseus: add libusb in cmake files --- devices/perseus/CMakeLists.txt | 4 ++++ plugins/samplesource/perseus/CMakeLists.txt | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/devices/perseus/CMakeLists.txt b/devices/perseus/CMakeLists.txt index e4615944c..2acce27ab 100644 --- a/devices/perseus/CMakeLists.txt +++ b/devices/perseus/CMakeLists.txt @@ -16,12 +16,14 @@ if (BUILD_DEBIAN) include_directories( . ${CMAKE_CURRENT_BINARY_DIR} + ${LIBUSB_INCLUDE_DIR} ${LIBPERSEUSSRC} ) else (BUILD_DEBIAN) include_directories( . ${CMAKE_CURRENT_BINARY_DIR} + ${LIBUSB_INCLUDE_DIR} ${LIBPERSEUS_INCLUDE_DIR} ) endif (BUILD_DEBIAN) @@ -37,11 +39,13 @@ set_target_properties(perseusdevice PROPERTIES DEFINE_SYMBOL "devices_EXPORTS") if (BUILD_DEBIAN) target_link_libraries(perseusdevice + ${LIBUSB_LIBRARIES} perseus sdrbase ) else (BUILD_DEBIAN) target_link_libraries(perseusdevice + ${LIBUSB_LIBRARIES} ${LIBPERSEUS_LIBRARIES} sdrbase ) diff --git a/plugins/samplesource/perseus/CMakeLists.txt b/plugins/samplesource/perseus/CMakeLists.txt index ffac2972f..d84e7a4c0 100644 --- a/plugins/samplesource/perseus/CMakeLists.txt +++ b/plugins/samplesource/perseus/CMakeLists.txt @@ -27,7 +27,8 @@ include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client - ${CMAKE_SOURCE_DIR}/devices + ${CMAKE_SOURCE_DIR}/devices + ${LIBUSB_INCLUDE_DIR} ${LIBPERSEUSSRC} ${LIBPERSEUSSRC}/libperseus/src ) @@ -36,7 +37,8 @@ include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client - ${CMAKE_SOURCE_DIR}/devices + ${CMAKE_SOURCE_DIR}/devices + ${LIBUSB_INCLUDE_DIR} ${LIBPERSEUS_INCLUDE_DIR} ) endif (BUILD_DEBIAN) @@ -59,6 +61,7 @@ add_library(inputperseus SHARED if (BUILD_DEBIAN) target_link_libraries(inputperseus ${QT_LIBRARIES} + ${LIBUSB_LIBRARIES} perseus sdrbase sdrgui @@ -68,6 +71,7 @@ target_link_libraries(inputperseus else (BUILD_DEBIAN) target_link_libraries(inputperseus ${QT_LIBRARIES} + ${LIBUSB_LIBRARIES} ${LIBPERSEUS_LIBRARIES} sdrbase sdrgui