1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

BladeRF2 input: added server plugin

This commit is contained in:
f4exb 2018-09-29 03:03:43 +02:00
parent 3ac55eacf3
commit 21bfd71331
2 changed files with 70 additions and 0 deletions

View File

@ -26,6 +26,7 @@ endif(LIBUSB_FOUND AND LIBAIRSPYHF_FOUND)
find_package(LibBLADERF)
if(LIBUSB_FOUND AND LIBBLADERF_FOUND)
add_subdirectory(bladerf1input)
add_subdirectory(bladerf2input)
endif(LIBUSB_FOUND AND LIBBLADERF_FOUND)
if(LIBUSB_FOUND AND UNIX)
@ -80,6 +81,7 @@ if (BUILD_DEBIAN)
add_subdirectory(airspy)
add_subdirectory(airspyhf)
add_subdirectory(bladerf1input)
add_subdirectory(bladerf2input)
add_subdirectory(hackrfinput)
add_subdirectory(limesdrinput)
add_subdirectory(perseus)

View File

@ -0,0 +1,68 @@
project(bladerf2input)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PLUGIN_PREFIX "../../../plugins/samplesource/bladerf2input")
set(bladerf2input_SOURCES
${PLUGIN_PREFIX}/bladerf2input.cpp
${PLUGIN_PREFIX}/bladerf2inputplugin.cpp
${PLUGIN_PREFIX}/bladerf2inputsettings.cpp
${PLUGIN_PREFIX}/bladerf2inputthread.cpp
)
set(bladerf2input_HEADERS
${PLUGIN_PREFIX}/bladerf2input.h
${PLUGIN_PREFIX}/bladerf2inputplugin.h
${PLUGIN_PREFIX}/bladerf2inputsettings.h
${PLUGIN_PREFIX}/bladerf2inputthread.h
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
${LIBBLADERFLIBSRC}/include
${LIBBLADERFLIBSRC}/src
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
${LIBBLADERF_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
add_library(inputbladerf2srv SHARED
${bladerf2input_SOURCES}
${bladerf2input_HEADERS_MOC}
)
if (BUILD_DEBIAN)
target_link_libraries(inputbladerf2srv
${QT_LIBRARIES}
bladerf
sdrbase
swagger
bladerf2device
)
else (BUILD_DEBIAN)
target_link_libraries(inputbladerf2srv
${QT_LIBRARIES}
${LIBBLADERF_LIBRARIES}
sdrbase
swagger
bladerf2device
)
endif (BUILD_DEBIAN)
target_link_libraries(inputbladerf2srv Qt5::Core)
install(TARGETS inputbladerf2srv DESTINATION lib/pluginssrv/samplesource)