mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 21:01:45 -05:00
BladeRF2 input: added server plugin
This commit is contained in:
parent
3ac55eacf3
commit
21bfd71331
@ -26,6 +26,7 @@ endif(LIBUSB_FOUND AND LIBAIRSPYHF_FOUND)
|
|||||||
find_package(LibBLADERF)
|
find_package(LibBLADERF)
|
||||||
if(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
if(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
||||||
add_subdirectory(bladerf1input)
|
add_subdirectory(bladerf1input)
|
||||||
|
add_subdirectory(bladerf2input)
|
||||||
endif(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
endif(LIBUSB_FOUND AND LIBBLADERF_FOUND)
|
||||||
|
|
||||||
if(LIBUSB_FOUND AND UNIX)
|
if(LIBUSB_FOUND AND UNIX)
|
||||||
@ -80,6 +81,7 @@ if (BUILD_DEBIAN)
|
|||||||
add_subdirectory(airspy)
|
add_subdirectory(airspy)
|
||||||
add_subdirectory(airspyhf)
|
add_subdirectory(airspyhf)
|
||||||
add_subdirectory(bladerf1input)
|
add_subdirectory(bladerf1input)
|
||||||
|
add_subdirectory(bladerf2input)
|
||||||
add_subdirectory(hackrfinput)
|
add_subdirectory(hackrfinput)
|
||||||
add_subdirectory(limesdrinput)
|
add_subdirectory(limesdrinput)
|
||||||
add_subdirectory(perseus)
|
add_subdirectory(perseus)
|
||||||
|
68
pluginssrv/samplesource/bladerf2input/CMakeLists.txt
Normal file
68
pluginssrv/samplesource/bladerf2input/CMakeLists.txt
Normal 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)
|
Loading…
Reference in New Issue
Block a user