2018-09-19 02:42:59 -04:00
|
|
|
project(bladerf1output)
|
2017-01-02 04:39:21 -05:00
|
|
|
|
2017-12-09 19:57:50 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2018-09-19 02:42:59 -04:00
|
|
|
set(bladerf1output_SOURCES
|
|
|
|
bladerf1outputgui.cpp
|
|
|
|
bladerf1output.cpp
|
|
|
|
bladerf1outputplugin.cpp
|
|
|
|
bladerf1outputsettings.cpp
|
|
|
|
bladerf1outputthread.cpp
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
|
2018-09-19 02:42:59 -04:00
|
|
|
set(bladerf1output_HEADERS
|
|
|
|
bladerf1outputgui.h
|
|
|
|
bladerf1output.h
|
|
|
|
bladerf1soutputplugin.h
|
|
|
|
bladerf1outputsettings.h
|
|
|
|
bladerf1outputthread.h
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
|
2018-09-19 02:42:59 -04:00
|
|
|
set(bladerf1output_FORMS
|
2018-09-19 00:27:40 -04:00
|
|
|
bladerf1outputgui.ui
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-12-09 19:57:50 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2017-01-02 04:39:21 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${LIBBLADERFLIBSRC}/include
|
|
|
|
${LIBBLADERFLIBSRC}/src
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-12-09 19:57:50 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2017-01-02 04:39:21 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${LIBBLADERF_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2018-09-19 02:42:59 -04:00
|
|
|
#qt4_wrap_cpp(bladerf1output_HEADERS_MOC ${bladerf1output_HEADERS})
|
|
|
|
qt5_wrap_ui(bladerf1output_FORMS_HEADERS ${bladerf1output_FORMS})
|
2017-01-02 04:39:21 -05:00
|
|
|
|
2018-09-19 02:42:59 -04:00
|
|
|
add_library(outputbladerf1 SHARED
|
|
|
|
${bladerf1output_SOURCES}
|
|
|
|
${bladerf1output_HEADERS_MOC}
|
|
|
|
${bladerf1output_FORMS_HEADERS}
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
2018-09-19 02:42:59 -04:00
|
|
|
target_link_libraries(outputbladerf1
|
2017-01-02 04:39:21 -05:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
bladerf
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-09 19:57:50 -05:00
|
|
|
swagger
|
2018-09-18 23:26:18 -04:00
|
|
|
bladerf1device
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2018-09-19 02:42:59 -04:00
|
|
|
target_link_libraries(outputbladerf1
|
2017-01-02 04:39:21 -05:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-09 19:57:50 -05:00
|
|
|
swagger
|
2018-09-18 23:26:18 -04:00
|
|
|
bladerf1device
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2018-09-19 02:42:59 -04:00
|
|
|
target_link_libraries(outputbladerf1 Qt5::Core Qt5::Widgets)
|
2017-01-02 04:39:21 -05:00
|
|
|
|
2018-09-19 02:42:59 -04:00
|
|
|
install(TARGETS outputbladerf1 DESTINATION lib/plugins/samplesink)
|