mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-16 00:14:00 -04:00
BladeRF Tx support: rename more Rx files and cmake items
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
project(bladerfinput)
|
||||
|
||||
set(bladerfinput_SOURCES
|
||||
bladerfinputgui.cpp
|
||||
bladerfinput.cpp
|
||||
bladerfinputplugin.cpp
|
||||
bladerfinputsettings.cpp
|
||||
bladerfinputthread.cpp
|
||||
)
|
||||
|
||||
set(bladerfinput_HEADERS
|
||||
bladerfinputgui.h
|
||||
bladerfinput.h
|
||||
bladerfinputplugin.h
|
||||
bladerfinputsettings.h
|
||||
bladerfinputthread.h
|
||||
)
|
||||
|
||||
set(bladerfinput_FORMS
|
||||
bladerfinputgui.ui
|
||||
)
|
||||
|
||||
if (BUILD_DEBIAN)
|
||||
include_directories(
|
||||
.
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${LIBBLADERFLIBSRC}/include
|
||||
${LIBBLADERFLIBSRC}/src
|
||||
)
|
||||
else (BUILD_DEBIAN)
|
||||
include_directories(
|
||||
.
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${LIBBLADERF_INCLUDE_DIR}
|
||||
)
|
||||
endif (BUILD_DEBIAN)
|
||||
|
||||
#include(${QT_USE_FILE})
|
||||
add_definitions(${QT_DEFINITIONS})
|
||||
add_definitions(-DQT_PLUGIN)
|
||||
add_definitions(-DQT_SHARED)
|
||||
|
||||
#qt4_wrap_cpp(bladerfinput_HEADERS_MOC ${bladerfinput_HEADERS})
|
||||
qt5_wrap_ui(bladerfinput_FORMS_HEADERS ${bladerfinput_FORMS})
|
||||
|
||||
add_library(inputbladerf SHARED
|
||||
${bladerfinput_SOURCES}
|
||||
${bladerfinput_HEADERS_MOC}
|
||||
${bladerfinput_FORMS_HEADERS}
|
||||
)
|
||||
|
||||
if (BUILD_DEBIAN)
|
||||
target_link_libraries(inputbladerf
|
||||
${QT_LIBRARIES}
|
||||
bladerf
|
||||
sdrbase
|
||||
)
|
||||
else (BUILD_DEBIAN)
|
||||
target_link_libraries(inputbladerf
|
||||
${QT_LIBRARIES}
|
||||
${LIBBLADERF_LIBRARIES}
|
||||
sdrbase
|
||||
)
|
||||
endif (BUILD_DEBIAN)
|
||||
|
||||
qt5_use_modules(inputbladerf Core Widgets)
|
||||
|
||||
install(TARGETS inputbladerf DESTINATION lib/plugins/samplesource)
|
||||
Reference in New Issue
Block a user