2017-09-18 17:47:36 -04:00
|
|
|
project(plutosdroutput)
|
|
|
|
|
2017-12-09 19:57:50 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2017-09-18 17:47:36 -04:00
|
|
|
set(plutosdroutput_SOURCES
|
|
|
|
plutosdroutputgui.cpp
|
|
|
|
plutosdroutput.cpp
|
|
|
|
plutosdroutputplugin.cpp
|
|
|
|
plutosdroutputsettings.cpp
|
|
|
|
plutosdroutputthread.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(plutosdroutput_HEADERS
|
|
|
|
plutosdroutputgui.h
|
|
|
|
plutosdroutput.h
|
|
|
|
plutosdroutputplugin.h
|
|
|
|
plutosdroutputsettings.h
|
|
|
|
plutosdroutputthread.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(plutosdroutput_FORMS
|
|
|
|
plutosdroutputgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
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-09-18 17:47:36 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${LIBIIOSRC}
|
|
|
|
)
|
|
|
|
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-09-18 17:47:36 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${LIBIIO_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
#add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
#qt4_wrap_cpp(plutosdroutput_HEADERS_MOC ${plutosdroutput_HEADERS})
|
|
|
|
qt5_wrap_ui(plutosdroutput_FORMS_HEADERS ${plutosdroutput_FORMS})
|
|
|
|
|
2017-09-19 16:11:55 -04:00
|
|
|
add_library(outputplutosdr SHARED
|
2017-09-18 17:47:36 -04:00
|
|
|
${plutosdroutput_SOURCES}
|
|
|
|
${plutosdroutput_HEADERS_MOC}
|
|
|
|
${plutosdroutput_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
2017-09-19 16:11:55 -04:00
|
|
|
target_link_libraries(outputplutosdr
|
2017-09-18 17:47:36 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
iio
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-09 19:57:50 -05:00
|
|
|
swagger
|
2017-09-18 17:47:36 -04:00
|
|
|
plutosdrdevice
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2017-09-19 16:11:55 -04:00
|
|
|
target_link_libraries(outputplutosdr
|
2017-09-18 17:47:36 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${LIBIIO_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-09 19:57:50 -05:00
|
|
|
swagger
|
2017-09-18 17:47:36 -04:00
|
|
|
plutosdrdevice
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2017-09-19 16:11:55 -04:00
|
|
|
qt5_use_modules(outputplutosdr Core Widgets)
|
2017-09-18 17:47:36 -04:00
|
|
|
|
2018-01-20 16:21:01 -05:00
|
|
|
install(TARGETS outputplutosdr DESTINATION lib/plugins/samplesink)
|