2018-09-19 07:28:14 -04:00
|
|
|
project(bladerf1input)
|
2015-06-06 21:30:28 -04:00
|
|
|
|
2017-12-09 06:41:42 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
set(bladerf1input_SOURCES
|
2018-09-19 02:56:39 -04:00
|
|
|
bladerf1inputgui.cpp
|
|
|
|
bladerf1input.cpp
|
|
|
|
bladerf1inputplugin.cpp
|
|
|
|
bladerf1inputsettings.cpp
|
|
|
|
bladerf1inputthread.cpp
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
set(bladerf1input_HEADERS
|
2018-09-19 02:56:39 -04:00
|
|
|
bladerf1inputgui.h
|
|
|
|
bladerf1input.h
|
|
|
|
bladerf1inputplugin.h
|
|
|
|
bladerf1inputsettings.h
|
|
|
|
bladerf1inputthread.h
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
set(bladerf1input_FORMS
|
2018-09-19 00:27:40 -04:00
|
|
|
bladerf1inputgui.ui
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
|
|
|
|
2016-11-02 10:51:45 -04:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-09-19 07:28:14 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-12-30 10:13:28 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
2016-11-02 10:51:45 -04:00
|
|
|
${LIBBLADERFLIBSRC}/include
|
|
|
|
${LIBBLADERFLIBSRC}/src
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2015-06-06 21:30:28 -04:00
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-09-19 07:28:14 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-12-30 10:13:28 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
2015-09-02 21:57:54 -04:00
|
|
|
${LIBBLADERF_INCLUDE_DIR}
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
2016-11-02 10:51:45 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2015-06-06 21:30:28 -04:00
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
#qt4_wrap_cpp(bladerf1input_HEADERS_MOC ${bladerf1input_HEADERS})
|
|
|
|
qt5_wrap_ui(bladerf1input_FORMS_HEADERS ${bladerf1input_FORMS})
|
2015-06-06 21:30:28 -04:00
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
add_library(inputbladerf1 SHARED
|
|
|
|
${bladerf1input_SOURCES}
|
|
|
|
${bladerf1input_HEADERS_MOC}
|
|
|
|
${bladerf1input_FORMS_HEADERS}
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
|
|
|
|
2016-11-02 10:51:45 -04:00
|
|
|
if (BUILD_DEBIAN)
|
2018-09-19 07:28:14 -04:00
|
|
|
target_link_libraries(inputbladerf1
|
2016-11-02 10:51:45 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
bladerf
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-09 06:41:42 -05:00
|
|
|
swagger
|
2018-09-18 23:26:18 -04:00
|
|
|
bladerf1device
|
2016-11-02 10:51:45 -04:00
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2018-09-19 07:28:14 -04:00
|
|
|
target_link_libraries(inputbladerf1
|
2015-06-06 21:30:28 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-09 06:41:42 -05:00
|
|
|
swagger
|
2018-09-18 23:26:18 -04:00
|
|
|
bladerf1device
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
2016-11-02 10:51:45 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2015-06-06 21:30:28 -04:00
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
target_link_libraries(inputbladerf1 Qt5::Core Qt5::Widgets)
|
2016-02-24 05:51:36 -05:00
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
install(TARGETS inputbladerf1 DESTINATION lib/plugins/samplesource)
|