2017-10-22 13:12:43 -04:00
|
|
|
project (sdrgui)
|
|
|
|
|
2018-11-24 15:21:04 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2017-10-22 13:12:43 -04:00
|
|
|
set(sdrgui_SOURCES
|
|
|
|
mainwindow.cpp
|
|
|
|
gui/aboutdialog.cpp
|
|
|
|
gui/addpresetdialog.cpp
|
2018-03-26 12:41:09 -04:00
|
|
|
gui/audiodialog.cpp
|
|
|
|
gui/audioselectdialog.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/basicchannelsettingsdialog.cpp
|
2018-12-16 19:25:54 -05:00
|
|
|
gui/basicdevicesettingsdialog.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/buttonswitch.cpp
|
|
|
|
gui/channelwindow.cpp
|
|
|
|
gui/clickablelabel.cpp
|
|
|
|
gui/colormapper.cpp
|
2018-01-04 05:11:53 -05:00
|
|
|
gui/commanditem.cpp
|
2018-01-04 23:05:12 -05:00
|
|
|
gui/commandkeyreceiver.cpp
|
2018-01-04 14:15:33 -05:00
|
|
|
gui/commandoutputdialog.cpp
|
2018-12-19 07:11:57 -05:00
|
|
|
gui/comboboxnoarrow.cpp
|
2018-03-26 12:41:09 -04:00
|
|
|
gui/crightclickenabler.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/cwkeyergui.cpp
|
2018-01-04 05:11:53 -05:00
|
|
|
gui/editcommanddialog.cpp
|
2017-11-05 00:50:01 -04:00
|
|
|
gui/externalclockbutton.cpp
|
|
|
|
gui/externalclockdialog.cpp
|
2018-08-12 11:07:43 -04:00
|
|
|
gui/glscope.cpp
|
2018-08-12 10:56:52 -04:00
|
|
|
gui/glscopegui.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/glshadersimple.cpp
|
|
|
|
gui/glshadertextured.cpp
|
2018-03-11 08:00:33 -04:00
|
|
|
gui/glshadertvarray.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/glspectrum.cpp
|
|
|
|
gui/glspectrumgui.cpp
|
|
|
|
gui/indicator.cpp
|
|
|
|
gui/levelmeter.cpp
|
2017-11-11 13:26:23 -05:00
|
|
|
gui/loggingdialog.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/mypositiondialog.cpp
|
|
|
|
gui/pluginsdialog.cpp
|
|
|
|
gui/presetitem.cpp
|
|
|
|
gui/rollupwidget.cpp
|
|
|
|
gui/samplingdevicecontrol.cpp
|
2017-11-01 22:30:54 -04:00
|
|
|
gui/samplingdevicedialog.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/scaleengine.cpp
|
2019-05-14 13:23:13 -04:00
|
|
|
gui/sdrangelsplash.cpp
|
2017-11-20 19:09:47 -05:00
|
|
|
gui/tickedslider.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/transverterbutton.cpp
|
|
|
|
gui/transverterdialog.cpp
|
2018-03-11 11:39:02 -04:00
|
|
|
gui/tvscreen.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/valuedial.cpp
|
|
|
|
gui/valuedialz.cpp
|
2018-11-05 11:27:32 -05:00
|
|
|
|
2018-08-12 11:23:32 -04:00
|
|
|
dsp/scopevis.cpp
|
2018-03-12 00:07:51 -04:00
|
|
|
dsp/scopevisxy.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
dsp/spectrumvis.cpp
|
2018-08-12 11:13:06 -04:00
|
|
|
dsp/spectrumscopecombovis.cpp
|
2018-11-05 11:27:32 -05:00
|
|
|
|
2017-10-24 12:29:18 -04:00
|
|
|
device/deviceuiset.cpp
|
2018-11-05 11:27:32 -05:00
|
|
|
|
2018-11-02 19:07:43 -04:00
|
|
|
soapygui/discreterangegui.cpp
|
|
|
|
soapygui/intervalrangegui.cpp
|
|
|
|
soapygui/itemsettinggui.cpp
|
2018-11-04 17:54:16 -05:00
|
|
|
soapygui/stringrangegui.cpp
|
2018-11-05 11:27:32 -05:00
|
|
|
soapygui/dynamicitemsettinggui.cpp
|
2018-11-10 20:30:10 -05:00
|
|
|
soapygui/dynamicargsettinggui.cpp
|
2018-11-06 19:33:17 -05:00
|
|
|
soapygui/intervalslidergui.cpp
|
2018-11-08 08:35:02 -05:00
|
|
|
soapygui/complexfactorgui.cpp
|
2018-11-10 13:52:27 -05:00
|
|
|
soapygui/arginfogui.cpp
|
2018-11-05 11:27:32 -05:00
|
|
|
|
2017-11-18 13:34:47 -05:00
|
|
|
webapi/webapiadaptergui.cpp
|
2017-10-22 13:12:43 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrgui_HEADERS
|
|
|
|
mainwindow.h
|
|
|
|
gui/aboutdialog.h
|
|
|
|
gui/addpresetdialog.h
|
2018-03-26 12:41:09 -04:00
|
|
|
gui/audiodialog.h
|
|
|
|
gui/audioselectdialog.h
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/basicchannelsettingsdialog.h
|
2018-12-16 19:25:54 -05:00
|
|
|
gui/basicdevicesettingsdialog.h
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/buttonswitch.h
|
|
|
|
gui/channelwindow.h
|
|
|
|
gui/colormapper.h
|
2018-01-04 05:11:53 -05:00
|
|
|
gui/commanditem.h
|
2018-01-04 23:05:12 -05:00
|
|
|
gui/commandkeyreceiver.h
|
2018-01-04 14:15:33 -05:00
|
|
|
gui/commandoutputdialog.h
|
2018-12-19 07:11:57 -05:00
|
|
|
gui/comboboxnoarrow.h
|
2018-03-26 12:41:09 -04:00
|
|
|
gui/crightclickenabler.h
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/cwkeyergui.h
|
2018-01-04 05:11:53 -05:00
|
|
|
gui/editcommanddialog.h
|
2017-11-05 00:50:01 -04:00
|
|
|
gui/externalclockbutton.h
|
|
|
|
gui/externalclockdialog.h
|
2018-08-12 11:06:55 -04:00
|
|
|
gui/glscope.h
|
2018-08-12 10:56:03 -04:00
|
|
|
gui/glscopegui.h
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/glshadersimple.h
|
2018-03-11 08:00:33 -04:00
|
|
|
gui/glshadertvarray.h
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/glshadertextured.h
|
|
|
|
gui/glspectrum.h
|
|
|
|
gui/glspectrumgui.h
|
|
|
|
gui/indicator.h
|
2017-11-11 13:26:23 -05:00
|
|
|
gui/levelmeter.h
|
2018-11-05 11:27:32 -05:00
|
|
|
gui/loggingdialog.h
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/mypositiondialog.h
|
|
|
|
gui/physicalunit.h
|
|
|
|
gui/pluginsdialog.h
|
|
|
|
gui/presetitem.h
|
|
|
|
gui/rollupwidget.h
|
|
|
|
gui/samplingdevicecontrol.h
|
2017-11-01 22:30:54 -04:00
|
|
|
gui/samplingdevicedialog.h
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/scaleengine.h
|
2019-05-14 13:23:13 -04:00
|
|
|
gui/sdrangelsplash.h
|
2017-11-20 19:09:47 -05:00
|
|
|
gui/tickedslider.h
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/transverterbutton.h
|
2018-03-11 11:39:02 -04:00
|
|
|
gui/transverterdialog.h
|
2018-11-05 11:27:32 -05:00
|
|
|
gui/tvscreen.h
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/valuedial.h
|
|
|
|
gui/valuedialz.h
|
2018-11-05 11:27:32 -05:00
|
|
|
|
2018-08-12 11:22:39 -04:00
|
|
|
dsp/scopevis.h
|
2018-11-05 11:27:32 -05:00
|
|
|
dsp/scopevisxy.h
|
2017-10-22 13:12:43 -04:00
|
|
|
dsp/spectrumvis.h
|
2018-08-12 11:13:06 -04:00
|
|
|
dsp/spectrumscopecombovis.h
|
2018-11-05 11:27:32 -05:00
|
|
|
|
2017-10-24 12:29:18 -04:00
|
|
|
device/deviceuiset.h
|
2018-11-05 11:27:32 -05:00
|
|
|
|
2018-11-02 19:07:43 -04:00
|
|
|
soapygui/discreterangegui.h
|
|
|
|
soapygui/intervalrangegui.h
|
|
|
|
soapygui/itemsettinggui.h
|
2018-11-04 17:54:16 -05:00
|
|
|
soapygui/stringrangegui.h
|
2018-11-05 11:27:32 -05:00
|
|
|
soapygui/dynamicitemsettinggui.h
|
2018-11-10 20:30:10 -05:00
|
|
|
soapygui/dynamicargsettinggui.h
|
2018-11-06 19:33:17 -05:00
|
|
|
soapygui/intervalslidergui.h
|
2018-11-08 08:35:02 -05:00
|
|
|
soapygui/complexfactorgui.h
|
2018-11-10 13:52:27 -05:00
|
|
|
soapygui/arginfogui.h
|
2018-11-05 11:27:32 -05:00
|
|
|
|
2017-11-18 13:34:47 -05:00
|
|
|
webapi/webapiadaptergui.h
|
2017-10-22 13:12:43 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrgui_SOURCES
|
|
|
|
${sdrgui_SOURCES}
|
|
|
|
${sdrgui_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrgui_FORMS
|
|
|
|
mainwindow.ui
|
|
|
|
gui/aboutdialog.ui
|
|
|
|
gui/addpresetdialog.ui
|
|
|
|
gui/basicchannelsettingsdialog.ui
|
2018-12-16 19:25:54 -05:00
|
|
|
gui/basicdevicesettingsdialog.ui
|
2018-01-04 14:15:33 -05:00
|
|
|
gui/commandoutputdialog.ui
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/cwkeyergui.ui
|
2018-01-04 05:11:53 -05:00
|
|
|
gui/editcommanddialog.ui
|
2017-11-05 00:50:01 -04:00
|
|
|
gui/externalclockdialog.ui
|
2018-08-12 10:44:12 -04:00
|
|
|
gui/glscopegui.ui
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/glspectrumgui.ui
|
|
|
|
gui/pluginsdialog.ui
|
|
|
|
gui/audiodialog.ui
|
2018-03-26 12:41:09 -04:00
|
|
|
gui/audioselectdialog.ui
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/samplingdevicecontrol.ui
|
2017-11-01 22:30:54 -04:00
|
|
|
gui/samplingdevicedialog.ui
|
2017-10-22 13:12:43 -04:00
|
|
|
gui/myposdialog.ui
|
|
|
|
gui/transverterdialog.ui
|
2017-11-11 13:26:23 -05:00
|
|
|
gui/loggingdialog.ui
|
2018-11-02 19:07:43 -04:00
|
|
|
soapygui/discreterangegui.ui
|
|
|
|
soapygui/intervalrangegui.ui
|
2018-11-06 19:33:17 -05:00
|
|
|
soapygui/intervalslidergui.ui
|
2018-11-08 08:35:02 -05:00
|
|
|
soapygui/complexfactorgui.ui
|
2018-11-10 13:52:27 -05:00
|
|
|
soapygui/arginfogui.ui
|
2017-10-22 13:12:43 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrgui_RESOURCES
|
|
|
|
resources/res.qrc
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(sdrgui_FORMS_HEADERS ${sdrgui_FORMS})
|
|
|
|
qt5_add_resources(sdrgui_RESOURCES_RCC ${sdrgui_RESOURCES})
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
SET(sdrgui_SOURCES ${sdrgui_SOURCES} resources/sdrangel.rc)
|
|
|
|
endif(WIN32)
|
|
|
|
|
|
|
|
add_library(sdrgui SHARED
|
|
|
|
${sdrgui_SOURCES}
|
|
|
|
${sdrgui_HEADERS_MOC}
|
|
|
|
${sdrgui_FORMS_HEADERS}
|
|
|
|
${sdrgui_RESOURCES_RCC}
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
2018-03-09 07:48:14 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2017-10-22 13:12:43 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/sdrbase
|
2017-11-11 04:29:32 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/logging
|
2017-11-17 02:52:15 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/httpserver
|
2018-11-05 11:27:32 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2017-10-22 13:12:43 -04:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${OPENGL_INCLUDE_DIR}
|
2018-12-01 21:06:04 -05:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2017-10-22 13:12:43 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sdrgui
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
sdrbase
|
2017-11-11 04:29:32 -05:00
|
|
|
logging
|
2017-10-22 13:12:43 -04:00
|
|
|
)
|
|
|
|
|
2018-03-09 08:07:39 -05:00
|
|
|
set_target_properties(sdrgui PROPERTIES DEFINE_SYMBOL "sdrgui_EXPORTS")
|
2017-10-22 13:12:43 -04:00
|
|
|
target_compile_features(sdrgui PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(sdrgui Qt5::Core Qt5::Widgets Qt5::OpenGL Qt5::Multimedia)
|
2017-10-22 13:12:43 -04:00
|
|
|
|
|
|
|
install(TARGETS sdrgui DESTINATION lib)
|
|
|
|
|