1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00
sdrangel/sdrgui/CMakeLists.txt

357 lines
8.9 KiB
CMake
Raw Normal View History

project (sdrgui)
# with cmake <3.9 doesn't work with ../ used on webapi
# see https://cmake.org/cmake/help/v3.9/prop_tgt/AUTOUIC_SEARCH_PATHS.html
set(CMAKE_AUTOUIC OFF)
set(sdrgui_SOURCES
mainwindow.cpp
gui/aboutdialog.cpp
2023-09-04 08:01:22 -04:00
gui/acronymview.cpp
gui/addpresetdialog.cpp
gui/audiodialog.cpp
gui/audioselectdialog.cpp
gui/basicchannelsettingsdialog.cpp
gui/basicdevicesettingsdialog.cpp
gui/basicfeaturesettingsdialog.cpp
gui/buttonswitch.cpp
gui/channeladddialog.cpp
gui/clickablelabel.cpp
gui/colormapper.cpp
2018-01-04 05:11:53 -05:00
gui/commanditem.cpp
gui/commandsdialog.cpp
gui/commandoutputdialog.cpp
gui/configurationsdialog.cpp
2023-03-21 06:54:42 -04:00
gui/coursedeviationindicator.cpp
gui/crightclickenabler.cpp
2020-11-09 12:56:06 -05:00
gui/customtextedit.cpp
gui/cwkeyergui.cpp
gui/datetimedelegate.cpp
gui/decimaldelegate.cpp
gui/devicesetselectiondialog.cpp
gui/devicesetpresetsdialog.cpp
gui/devicestreamselectiondialog.cpp
2019-06-12 12:50:53 -04:00
gui/deviceuserargsdialog.cpp
2022-12-20 05:40:50 -05:00
gui/dialogpositioner.cpp
gui/dialpopup.cpp
2021-05-24 07:39:22 -04:00
gui/dmsspinbox.cpp
2018-01-04 05:11:53 -05:00
gui/editcommanddialog.cpp
gui/externalclockbutton.cpp
gui/externalclockdialog.cpp
gui/fmpreemphasisdialog.cpp
gui/featureadddialog.cpp
gui/featurelayout.cpp
2020-09-23 23:38:05 -04:00
gui/featurepresetsdialog.cpp
2023-08-13 18:52:57 -04:00
gui/fftdialog.cpp
2023-11-05 04:33:27 -05:00
gui/fftnrdialog.cpp
2021-11-01 20:04:43 -04:00
gui/fftwisdomdialog.cpp
gui/flowlayout.cpp
gui/framelesswindowresizer.cpp
2023-05-15 11:40:43 -04:00
gui/frequencydelegate.cpp
2018-08-12 11:07:43 -04:00
gui/glscope.cpp
gui/glscopegui.cpp
gui/glshadercolors.cpp
gui/glshadercolormap.cpp
gui/glshadersimple.cpp
2022-06-18 07:35:44 -04:00
gui/glshaderspectrogram.cpp
gui/glshadertextured.cpp
2018-03-11 08:00:33 -04:00
gui/glshadertvarray.cpp
gui/glspectrum.cpp
gui/glspectrumgui.cpp
gui/glspectrumview.cpp
2022-06-18 07:35:44 -04:00
gui/graphicsdialog.cpp
gui/graphicsviewzoom.cpp
gui/httpdownloadmanagergui.cpp
gui/indicator.cpp
gui/int64delegate.cpp
gui/int64validator.cpp
gui/levelmeter.cpp
gui/loggingdialog.cpp
gui/logslider.cpp
gui/loglabelslider.cpp
gui/mdiutils.cpp
gui/mypositiondialog.cpp
2023-08-13 18:52:57 -04:00
gui/nanosecondsdelegate.cpp
gui/pluginsdialog.cpp
2023-08-24 10:51:50 -04:00
gui/pluginpresetsdialog.cpp
gui/presetitem.cpp
2023-08-13 18:52:57 -04:00
gui/profiledialog.cpp
2022-04-04 04:23:52 -04:00
gui/rollupcontents.cpp
gui/rollupwidget.cpp
2017-11-01 22:30:54 -04:00
gui/samplingdevicedialog.cpp
gui/scaleengine.cpp
2021-02-26 15:25:48 -05:00
gui/scaledimage.cpp
gui/scidoublespinbox.cpp
2019-05-14 13:23:13 -04:00
gui/sdrangelsplash.cpp
gui/spectrumcalibrationpointsdialog.cpp
2021-07-31 16:57:31 -04:00
gui/spectrummarkersdialog.cpp
gui/spectrummeasurementsdialog.cpp
2022-09-28 11:59:35 -04:00
gui/spectrummeasurements.cpp
2022-12-20 05:40:50 -05:00
gui/tabletapandhold.cpp
gui/tickedslider.cpp
gui/timedelegate.cpp
gui/transverterbutton.cpp
gui/transverterdialog.cpp
2018-03-11 11:39:02 -04:00
gui/tvscreen.cpp
gui/tvscreenanalog.cpp
gui/valuedial.cpp
gui/valuedialz.cpp
2022-12-20 05:40:50 -05:00
gui/welcomedialog.cpp
2022-04-04 04:23:52 -04:00
gui/workspace.cpp
gui/workspaceselectiondialog.cpp
gui/wsspectrumsettingsdialog.cpp
2021-02-26 15:25:48 -05:00
gui/wrappingdatetimeedit.cpp
dsp/scopevisxy.cpp
device/devicegui.cpp
device/deviceuiset.cpp
channel/channelgui.cpp
feature/featuregui.cpp
feature/featureuiset.cpp
mainspectrum/mainspectrumgui.cpp
soapygui/discreterangegui.cpp
soapygui/intervalrangegui.cpp
soapygui/itemsettinggui.cpp
soapygui/stringrangegui.cpp
soapygui/dynamicitemsettinggui.cpp
soapygui/dynamicargsettinggui.cpp
soapygui/intervalslidergui.cpp
soapygui/complexfactorgui.cpp
soapygui/arginfogui.cpp
resources/res.qrc
)
set(sdrgui_HEADERS
mainwindow.h
gui/aboutdialog.h
gui/accessiblevaluedial.h
gui/accessiblevaluedialz.h
2023-09-04 08:01:22 -04:00
gui/acronymview.h
gui/addpresetdialog.h
gui/audiodialog.h
gui/audioselectdialog.h
gui/basicchannelsettingsdialog.h
gui/basicdevicesettingsdialog.h
gui/basicfeaturesettingsdialog.h
gui/buttonswitch.h
gui/channeladddialog.h
gui/colormapper.h
2018-01-04 05:11:53 -05:00
gui/commanditem.h
gui/commandsdialog.h
gui/commandoutputdialog.h
gui/configurationsdialog.h
2023-03-21 06:54:42 -04:00
gui/coursedeviationindicator.h
gui/crightclickenabler.h
2020-11-09 12:56:06 -05:00
gui/customtextedit.h
gui/cwkeyergui.h
gui/datetimedelegate.h
gui/decimaldelegate.h
gui/devicesetselectiondialog.h
gui/devicesetpresetsdialog.h
gui/devicestreamselectiondialog.h
2019-06-12 12:50:53 -04:00
gui/deviceuserargsdialog.h
2022-12-20 05:40:50 -05:00
gui/dialogpositioner.h
gui/dialpopup.h
2021-05-24 07:39:22 -04:00
gui/dmsspinbox.h
gui/doublevalidator.h
2018-01-04 05:11:53 -05:00
gui/editcommanddialog.h
gui/externalclockbutton.h
gui/externalclockdialog.h
gui/fmpreemphasisdialog.h
gui/featureadddialog.h
gui/featurelayout.h
2020-09-23 23:38:05 -04:00
gui/featurepresetsdialog.h
2023-08-13 18:52:57 -04:00
gui/fftdialog.h
2023-11-05 04:33:27 -05:00
gui/fftnrdialog.h
2021-11-01 20:04:43 -04:00
gui/fftwisdomdialog.h
gui/flowlayout.h
gui/framelesswindowresizer.h
2023-05-15 11:40:43 -04:00
gui/frequencydelegate.h
2018-08-12 11:06:55 -04:00
gui/glscope.h
2018-08-12 10:56:03 -04:00
gui/glscopegui.h
gui/glshadercolors.h
gui/glshadercolormap.h
gui/glshadersimple.h
2022-06-18 07:35:44 -04:00
gui/glshaderspectrogram.h
2018-03-11 08:00:33 -04:00
gui/glshadertvarray.h
gui/glshadertextured.h
gui/glspectrum.h
gui/glspectrumgui.h
gui/glspectrumview.h
2022-06-18 07:35:44 -04:00
gui/graphicsdialog.h
gui/graphicsviewzoom.h
gui/httpdownloadmanagergui.h
gui/indicator.h
gui/int64delegate.h
gui/int64validator.h
gui/levelmeter.h
gui/loggingdialog.h
gui/logslider.h
gui/loglabelslider.h
gui/mdiutils.h
gui/mypositiondialog.h
2023-08-13 18:52:57 -04:00
gui/nanosecondsdelegate.h
gui/physicalunit.h
gui/pluginsdialog.h
2023-08-24 10:51:50 -04:00
gui/pluginpresetsdialog.h
gui/presetitem.h
2023-08-24 10:51:50 -04:00
gui/presets/dialog.h
2023-08-13 18:52:57 -04:00
gui/profiledialog.h
gui/qtcompatibility.h
2022-04-04 04:23:52 -04:00
gui/rollupcontents.h
gui/rollupwidget.h
2017-11-01 22:30:54 -04:00
gui/samplingdevicedialog.h
gui/scaleengine.h
2021-02-26 15:25:48 -05:00
gui/scaledimage.h
gui/scidoublespinbox.h
2019-05-14 13:23:13 -04:00
gui/sdrangelsplash.h
gui/spectrumcalibrationpointsdialog.h
2021-07-31 16:57:31 -04:00
gui/spectrummarkersdialog.h
gui/spectrummeasurementsdialog.h
2022-09-28 11:59:35 -04:00
gui/spectrummeasurements.h
2022-12-20 05:40:50 -05:00
gui/tabletapandhold.h
gui/tickedslider.h
gui/timedelegate.h
gui/transverterbutton.h
2018-03-11 11:39:02 -04:00
gui/transverterdialog.h
gui/tvscreen.h
gui/tvscreenanalog.h
gui/valuedial.h
gui/valuedialz.h
2022-12-20 05:40:50 -05:00
gui/welcomedialog.h
2022-04-04 04:23:52 -04:00
gui/workspace.h
gui/workspaceselectiondialog.h
gui/wsspectrumsettingsdialog.h
2021-02-26 15:25:48 -05:00
gui/wrappingdatetimeedit.h
dsp/scopevisxy.h
device/devicegui.h
device/deviceuiset.h
channel/channelgui.h
feature/featuregui.h
feature/featureuiset.h
mainspectrum/mainspectrumgui.h
soapygui/discreterangegui.h
soapygui/intervalrangegui.h
soapygui/itemsettinggui.h
soapygui/stringrangegui.h
soapygui/dynamicitemsettinggui.h
soapygui/dynamicargsettinggui.h
soapygui/intervalslidergui.h
soapygui/complexfactorgui.h
soapygui/arginfogui.h
)
set(sdrgui_FORMS
# mainwindow.ui
gui/aboutdialog.ui
gui/addpresetdialog.ui
gui/basicchannelsettingsdialog.ui
gui/basicdevicesettingsdialog.ui
gui/basicfeaturesettingsdialog.ui
gui/channeladddialog.ui
gui/commandsdialog.ui
gui/commandoutputdialog.ui
gui/configurationsdialog.ui
gui/cwkeyergui.ui
gui/devicesetpresetsdialog.ui
gui/devicestreamselectiondialog.ui
gui/deviceuserargsdialog.ui
gui/editcommanddialog.ui
gui/externalclockdialog.ui
gui/fmpreemphasisdialog.ui
gui/featureadddialog.ui
gui/featurepresetsdialog.ui
2023-08-13 18:52:57 -04:00
gui/fftdialog.ui
2023-11-05 04:33:27 -05:00
gui/fftnrdialog.ui
2021-11-01 20:04:43 -04:00
gui/fftwisdomdialog.ui
gui/glscopegui.ui
gui/glspectrumgui.ui
2022-06-18 07:35:44 -04:00
gui/graphicsdialog.ui
gui/pluginsdialog.ui
2023-08-24 10:51:50 -04:00
gui/pluginpresetsdialog.ui
2023-08-13 18:52:57 -04:00
gui/profiledialog.ui
gui/audiodialog.ui
gui/audioselectdialog.ui
gui/samplingdevicecontrol.ui
gui/samplingdevicedialog.ui
2021-07-31 16:57:31 -04:00
gui/spectrummarkersdialog.ui
gui/spectrummeasurementsdialog.ui
gui/spectrumcalibrationpointsdialog.ui
gui/myposdialog.ui
gui/transverterdialog.ui
gui/loggingdialog.ui
2022-12-20 05:40:50 -05:00
gui/welcomedialog.ui
2022-04-04 04:23:52 -04:00
gui/workspaceselectiondialog.ui
gui/wsspectrumsettingsdialog.ui
soapygui/discreterangegui.ui
soapygui/intervalrangegui.ui
soapygui/intervalslidergui.ui
soapygui/complexfactorgui.ui
soapygui/arginfogui.ui
)
qt_wrap_ui(sdrgui_FORMS_HEADERS ${sdrgui_FORMS})
include_directories(
${CMAKE_SOURCE_DIR}/exports
${CMAKE_SOURCE_DIR}/sdrbase
${CMAKE_SOURCE_DIR}/logging
${CMAKE_SOURCE_DIR}/httpserver
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${Boost_INCLUDE_DIRS}
)
2022-12-20 05:40:50 -05:00
if(NOT ANDROID)
include_directories(${OPENGL_INCLUDE_DIR})
endif()
add_library(sdrgui SHARED
${sdrgui_SOURCES}
${sdrgui_FORMS_HEADERS}
)
target_link_libraries(sdrgui
Qt::Core
Qt::Widgets
Qt::OpenGL
Qt::Multimedia
2022-12-20 05:40:50 -05:00
Qt::Positioning
${OPENGL_LIBRARIES}
2020-01-11 19:10:51 -05:00
${sdrgui_LIMERFE_LIB}
sdrbase
logging
)
if (Qt6_FOUND)
target_link_libraries(sdrbase
Qt::OpenGLWidgets
)
endif()
2022-12-20 05:40:50 -05:00
if(ANDROID)
target_link_libraries(sdrgui GLESv3)
endif()
install(TARGETS sdrgui DESTINATION ${INSTALL_LIB_DIR})
if(WIN32 AND Qt6_FOUND)
# Run deployqt for OpenGLWidgets
include(DeployQt)
windeployqt(sdrgui ${SDRANGEL_BINARY_BIN_DIR} "")
endif()
# Install debug symbols
if (WIN32)
install(FILES $<TARGET_PDB_FILE:sdrgui> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_LIB_DIR} )
endif()