1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

Server: added PlutoSDR input plugin

This commit is contained in:
f4exb
2018-05-29 20:27:36 +02:00
parent 362e8a629d
commit 3e31a8b23b
6 changed files with 91 additions and 4 deletions
+6
View File
@@ -53,6 +53,11 @@ if(LIBUSB_FOUND AND RX_SAMPLE_24BIT AND LIBPERSEUS_FOUND)
add_subdirectory(perseus)
endif(LIBUSB_FOUND AND RX_SAMPLE_24BIT AND LIBPERSEUS_FOUND)
find_package(LibIIO)
if(LIBUSB_FOUND AND LIBIIO_FOUND)
add_subdirectory(plutosdrinput)
endif(LIBUSB_FOUND AND LIBIIO_FOUND)
find_package(LibRTLSDR)
if(LIBUSB_FOUND AND LIBRTLSDR_FOUND)
add_subdirectory(rtlsdr)
@@ -64,6 +69,7 @@ if (BUILD_DEBIAN)
add_subdirectory(hackrfinput)
add_subdirectory(limesdrinput)
add_subdirectory(perseus)
add_subdirectory(plutosdrinput)
add_subdirectory(rtlsdr)
endif (BUILD_DEBIAN)
@@ -0,0 +1,66 @@
project(plutosdrinput)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PLUGIN_PREFIX "../../../plugins/samplesource/plutosdrinput")
set(plutosdrinput_SOURCES
${PLUGIN_PREFIX}/plutosdrinput.cpp
${PLUGIN_PREFIX}/plutosdrinputplugin.cpp
${PLUGIN_PREFIX}/plutosdrinputsettings.cpp
${PLUGIN_PREFIX}/plutosdrinputthread.cpp
)
set(plutosdrinput_HEADERS
${PLUGIN_PREFIX}/plutosdrinput.h
${PLUGIN_PREFIX}/plutosdrinputplugin.h
${PLUGIN_PREFIX}/plutosdrinputsettings.h
${PLUGIN_PREFIX}/plutosdrinputthread.h
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
${LIBIIOSRC}
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
${LIBIIO_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
add_library(inputplutosdrsrv SHARED
${plutosdrinput_SOURCES}
${plutosdrinput_HEADERS_MOC}
)
if (BUILD_DEBIAN)
target_link_libraries(inputplutosdrsrv
${QT_LIBRARIES}
iio
sdrbase
swagger
plutosdrdevice
)
else (BUILD_DEBIAN)
target_link_libraries(inputplutosdrsrv
${QT_LIBRARIES}
${LIBIIO_LIBRARIES}
sdrbase
swagger
plutosdrdevice
)
endif (BUILD_DEBIAN)
qt5_use_modules(inputplutosdrsrv Core)
install(TARGETS inputplutosdrsrv DESTINATION lib/plugins/samplesource)