2017-10-22 17:12:43 +00:00
|
|
|
project (sdrgui)
|
|
|
|
|
|
|
|
set(sdrgui_SOURCES
|
|
|
|
mainwindow.cpp
|
|
|
|
gui/aboutdialog.cpp
|
|
|
|
gui/addpresetdialog.cpp
|
|
|
|
gui/basicchannelsettingsdialog.cpp
|
|
|
|
gui/buttonswitch.cpp
|
|
|
|
gui/channelwindow.cpp
|
|
|
|
gui/clickablelabel.cpp
|
|
|
|
gui/colormapper.cpp
|
|
|
|
gui/cwkeyergui.cpp
|
2017-11-05 04:50:01 +00:00
|
|
|
gui/externalclockbutton.cpp
|
|
|
|
gui/externalclockdialog.cpp
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/glscope.cpp
|
|
|
|
gui/glscopegui.cpp
|
|
|
|
gui/glscopeng.cpp
|
|
|
|
gui/glscopemulti.cpp
|
|
|
|
gui/glscopenggui.cpp
|
|
|
|
gui/glscopemultigui.cpp
|
|
|
|
gui/glshadersimple.cpp
|
|
|
|
gui/glshadertextured.cpp
|
|
|
|
gui/glspectrum.cpp
|
|
|
|
gui/glspectrumgui.cpp
|
|
|
|
gui/indicator.cpp
|
|
|
|
gui/levelmeter.cpp
|
2017-11-11 18:26:23 +00:00
|
|
|
gui/loggingdialog.cpp
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/mypositiondialog.cpp
|
|
|
|
gui/pluginsdialog.cpp
|
|
|
|
gui/audiodialog.cpp
|
|
|
|
gui/presetitem.cpp
|
|
|
|
gui/rollupwidget.cpp
|
|
|
|
gui/samplingdevicecontrol.cpp
|
2017-11-02 02:30:54 +00:00
|
|
|
gui/samplingdevicedialog.cpp
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/scale.cpp
|
|
|
|
gui/scaleengine.cpp
|
2017-11-21 00:09:47 +00:00
|
|
|
gui/tickedslider.cpp
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/transverterbutton.cpp
|
|
|
|
gui/transverterdialog.cpp
|
|
|
|
gui/valuedial.cpp
|
|
|
|
gui/valuedialz.cpp
|
|
|
|
|
|
|
|
dsp/scopevis.cpp
|
|
|
|
dsp/scopevisng.cpp
|
|
|
|
dsp/scopevismulti.cpp
|
|
|
|
dsp/spectrumvis.cpp
|
|
|
|
dsp/spectrumscopecombovis.cpp
|
|
|
|
dsp/spectrumscopengcombovis.cpp
|
|
|
|
|
2017-10-24 16:29:18 +00:00
|
|
|
device/deviceuiset.cpp
|
2017-11-18 18:34:47 +00:00
|
|
|
|
|
|
|
webapi/webapiadaptergui.cpp
|
2017-10-22 17:12:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrgui_HEADERS
|
|
|
|
mainwindow.h
|
|
|
|
gui/aboutdialog.h
|
|
|
|
gui/addpresetdialog.h
|
|
|
|
gui/basicchannelsettingsdialog.h
|
|
|
|
gui/buttonswitch.h
|
|
|
|
gui/channelwindow.h
|
|
|
|
gui/colormapper.h
|
|
|
|
gui/cwkeyergui.h
|
2017-11-05 04:50:01 +00:00
|
|
|
gui/externalclockbutton.h
|
|
|
|
gui/externalclockdialog.h
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/glscope.h
|
|
|
|
gui/glscopegui.h
|
|
|
|
gui/glscopeng.h
|
|
|
|
gui/glscopemulti.h
|
|
|
|
gui/glscopenggui.h
|
|
|
|
gui/glscopemultigui.h
|
|
|
|
gui/glshadersimple.h
|
|
|
|
gui/glshadertextured.h
|
|
|
|
gui/glspectrum.h
|
|
|
|
gui/glspectrumgui.h
|
|
|
|
gui/indicator.h
|
2017-11-11 18:26:23 +00:00
|
|
|
gui/levelmeter.h
|
|
|
|
gui/loggingdialog.h
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/mypositiondialog.h
|
|
|
|
gui/physicalunit.h
|
|
|
|
gui/pluginsdialog.h
|
|
|
|
gui/audiodialog.h
|
|
|
|
gui/presetitem.h
|
|
|
|
gui/rollupwidget.h
|
|
|
|
gui/samplingdevicecontrol.h
|
2017-11-02 02:30:54 +00:00
|
|
|
gui/samplingdevicedialog.h
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/scale.h
|
|
|
|
gui/scaleengine.h
|
2017-11-21 00:09:47 +00:00
|
|
|
gui/tickedslider.h
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/transverterbutton.h
|
|
|
|
gui/transverterdialog.h
|
|
|
|
gui/valuedial.h
|
|
|
|
gui/valuedialz.h
|
|
|
|
|
|
|
|
dsp/scopevis.h
|
|
|
|
dsp/scopevisng.h
|
|
|
|
dsp/scopevismulti.h
|
|
|
|
dsp/spectrumvis.h
|
|
|
|
dsp/spectrumscopecombovis.h
|
|
|
|
dsp/spectrumscopengcombovis.h
|
|
|
|
|
2017-10-24 16:29:18 +00:00
|
|
|
device/deviceuiset.h
|
2017-11-18 18:34:47 +00:00
|
|
|
|
|
|
|
webapi/webapiadaptergui.h
|
2017-10-22 17:12:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrgui_SOURCES
|
|
|
|
${sdrgui_SOURCES}
|
|
|
|
${sdrgui_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrgui_FORMS
|
|
|
|
mainwindow.ui
|
|
|
|
gui/aboutdialog.ui
|
|
|
|
gui/addpresetdialog.ui
|
|
|
|
gui/basicchannelsettingsdialog.ui
|
|
|
|
gui/cwkeyergui.ui
|
2017-11-05 04:50:01 +00:00
|
|
|
gui/externalclockdialog.ui
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/glscopegui.ui
|
|
|
|
gui/glscopenggui.ui
|
|
|
|
gui/glscopemultigui.ui
|
|
|
|
gui/glspectrumgui.ui
|
|
|
|
gui/pluginsdialog.ui
|
|
|
|
gui/audiodialog.ui
|
|
|
|
gui/samplingdevicecontrol.ui
|
2017-11-02 02:30:54 +00:00
|
|
|
gui/samplingdevicedialog.ui
|
2017-10-22 17:12:43 +00:00
|
|
|
gui/myposdialog.ui
|
|
|
|
gui/transverterdialog.ui
|
2017-11-11 18:26:23 +00:00
|
|
|
gui/loggingdialog.ui
|
2017-10-22 17:12:43 +00: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(
|
|
|
|
.
|
|
|
|
${CMAKE_SOURCE_DIR}/sdrbase
|
2017-11-11 09:29:32 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/logging
|
2017-11-17 07:52:15 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/httpserver
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2017-10-22 17:12:43 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${OPENGL_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sdrgui
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
sdrbase
|
2017-11-11 09:29:32 +00:00
|
|
|
logging
|
2017-10-22 17:12:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(sdrgui PROPERTIES DEFINE_SYMBOL "sdrangel_EXPORTS")
|
|
|
|
target_compile_features(sdrgui PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
|
|
|
|
|
|
|
|
qt5_use_modules(sdrgui Core Widgets OpenGL Multimedia)
|
|
|
|
|
|
|
|
install(TARGETS sdrgui DESTINATION lib)
|
|
|
|
|