1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 15:51:47 -05:00

Update CMakeLists.txt to support both Qt5 and Qt6. Add option ENABLE_QT6

This commit is contained in:
Jon Beniston 2022-11-17 14:34:54 +00:00
parent 006e23d7b7
commit fc7c9c1fc8
126 changed files with 355 additions and 291 deletions

View File

@ -29,6 +29,7 @@ option(HIDE_CONSOLE "Hide console when running GUI on Windows" ON)
option(BUNDLE "Enable distribution bundle" OFF)
set(ARCH_OPT "native" CACHE STRING "Specify instruction set to use. Will be passed directly as `-march` or `/arch:` argument on supported compilers. \
'native' option will figure out host machine compatibilities and set flags accordingly (even with MSVC).")
option(ENABLE_QT6 "Build with Qt6 rather than Qt5" OFF)
# Sampling devices enablers
option(ENABLE_AIRSPY "Enable AirSpy support" ON)
@ -410,30 +411,59 @@ set(CMAKE_AUTORCC TRUE)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Qt requirements
find_package(Qt5
REQUIRED COMPONENTS
Core
Widgets
WebSockets
Multimedia
MultimediaWidgets
Positioning
Charts
SerialPort)
# See: https://doc-snapshots.qt.io/qt6-dev/cmake-qt5-and-qt6-compatibility.html
if(ENABLE_QT6)
# Qt6 doesn't currently support Location
find_package(Qt6
COMPONENTS
Core
Widgets
WebSockets
Multimedia
MultimediaWidgets
Positioning
Charts
SerialPort
Core5Compat)
else()
find_package(Qt5 5.15
REQUIRED COMPONENTS
Core
Widgets
WebSockets
Multimedia
MultimediaWidgets
Positioning
Charts
SerialPort)
endif()
# for the server we don't need OpenGL/Qt Quick components
if (BUILD_GUI)
find_package(OpenGL REQUIRED)
find_package(Qt5
REQUIRED COMPONENTS
OpenGL
Quick
QuickWidgets
Location
TextToSpeech
WebEngine
WebEngineCore
WebEngineWidgets)
if (ENABLE_QT6)
find_package(Qt6
REQUIRED COMPONENTS
OpenGL
OpenGLWidgets
Quick
QuickWidgets
TextToSpeech
WebEngineQuick
WebEngineCore
WebEngineWidgets)
else()
find_package(Qt5
REQUIRED COMPONENTS
OpenGL
Quick
QuickWidgets
Location
TextToSpeech
WebEngine
WebEngineCore
WebEngineWidgets)
endif()
endif()
# other requirements
@ -629,7 +659,7 @@ add_executable(sdrangelbench
)
target_link_libraries(sdrangelbench
Qt5::Multimedia
Qt::Multimedia
sdrbench
logging
)
@ -646,8 +676,8 @@ if (BUILD_GUI)
target_link_libraries(${CMAKE_PROJECT_NAME}
${OPENGL_LIBRARIES}
Qt5::Widgets
Qt5::Multimedia
Qt::Widgets
Qt::Multimedia
sdrbase
sdrgui
logging
@ -670,7 +700,7 @@ if (BUILD_SERVER)
)
target_link_libraries(sdrangelsrv
Qt5::Multimedia
Qt::Multimedia
sdrbase
sdrsrv
logging

View File

@ -1,6 +1,10 @@
find_package(Qt5Core REQUIRED)
if (Qt6_FOUND)
find_package(Qt6Core REQUIRED)
else()
find_package(Qt5Core REQUIRED)
endif()
get_target_property(_qmake_executable Qt5::qmake IMPORTED_LOCATION)
get_target_property(_qmake_executable Qt::qmake IMPORTED_LOCATION)
get_filename_component(_qt_bin_dir "${_qmake_executable}" DIRECTORY)
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${_qt_bin_dir}")
@ -20,7 +24,7 @@ function(windeployqt target bindir qmldir)
add_custom_command(TARGET ${target} POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E
env PATH="${_qt_bin_dir}" "${WINDEPLOYQT_EXECUTABLE}"
--verbose 1
--verbose 2
--no-compiler-runtime
--dir "${bindir}"
--qmldir "${qmldir}"

View File

@ -1,5 +1,5 @@
# Stuff qmake can tell us
get_target_property (QMAKE_EXECUTABLE Qt5::qmake LOCATION)
get_target_property (QMAKE_EXECUTABLE Qt::qmake LOCATION)
function (QUERY_QMAKE VAR RESULT)
exec_program (${QMAKE_EXECUTABLE} ARGS "-query ${VAR}" RETURN_VALUE return_code OUTPUT_VARIABLE output)
if (NOT return_code)

View File

@ -40,8 +40,8 @@ add_library(httpserver SHARED
)
target_link_libraries(httpserver
Qt5::Core
Qt5::Network
Qt::Core
Qt::Network
)
install(TARGETS httpserver DESTINATION ${INSTALL_LIB_DIR})

View File

@ -26,8 +26,8 @@ add_library(logging SHARED
)
target_link_libraries(logging
Qt5::Core
Qt5::Network
Qt::Core
Qt::Network
)
install(TARGETS logging DESTINATION ${INSTALL_LIB_DIR})

View File

@ -52,7 +52,7 @@ add_library(modemm17 SHARED
)
target_link_libraries(modemm17
Qt5::Core
Qt::Core
)
install(TARGETS modemm17 DESTINATION ${INSTALL_LIB_DIR})

View File

@ -35,7 +35,7 @@ if (NOT SERVER_MODE)
)
set(TARGET_NAME beamsteeringcwmod)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -50,7 +50,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -39,7 +39,7 @@ if (NOT SERVER_MODE)
)
set(TARGET_NAME doa2)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -37,7 +37,7 @@ if (NOT SERVER_MODE)
)
set(TARGET_NAME interferometer)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -52,7 +52,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -1,6 +1,6 @@
project(demod)
if (ENABLE_CHANNELRX_DEMODADSB AND Qt5Quick_FOUND AND Qt5QuickWidgets_FOUND AND Qt5Positioning_FOUND)
if (ENABLE_CHANNELRX_DEMODADSB AND Qt${QT_DEFAULT_MAJOR_VERSION}Quick_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}QuickWidgets_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}Positioning_FOUND)
add_subdirectory(demodadsb)
# add_subdirectory(demodvormc)
endif()

View File

@ -34,8 +34,8 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt5::Widgets
Qt::Core
Qt::Widgets
sdrbase
sdrgui
)

View File

@ -29,7 +29,7 @@ set(adsb_HEADERS
include_directories(
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${Boost_INCLUDE_DIRS}
${Qt5Gui_PRIVATE_INCLUDE_DIRS}
${Qt${QT_DEFAULT_MAJOR_VERSION}Gui_PRIVATE_INCLUDE_DIRS}
)
if(NOT SERVER_MODE)
@ -61,7 +61,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodadsb)
set(TARGET_LIB Qt5::Widgets Qt5::Quick Qt5::QuickWidgets Qt5::Positioning Qt5::TextToSpeech)
set(TARGET_LIB Qt::Widgets Qt::Quick Qt::QuickWidgets Qt::Positioning Qt::TextToSpeech)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -81,7 +81,7 @@ endif()
target_link_libraries(${TARGET_NAME}
Boost::disable_autolinking
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodais)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -38,7 +38,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodam)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -53,7 +53,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -45,7 +45,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodapt)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -68,7 +68,7 @@ if(SGP4_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,8 +34,8 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt5::Widgets
Qt::Core
Qt::Widgets
sdrbase
sdrgui
)

View File

@ -45,7 +45,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodbfm)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -60,7 +60,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -41,7 +41,7 @@ if(NOT SERVER_MODE)
chirpchatdemodgui.h
)
set(TARGET_NAME demodchirpchat)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -56,7 +56,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -39,7 +39,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demoddab)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -77,10 +77,10 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt5::Widgets
Qt5::Multimedia
Qt5::MultimediaWidgets
Qt::Core
Qt::Widgets
Qt::Multimedia
Qt::MultimediaWidgets
sdrbase
sdrgui
${AVCODEC_LIBRARIES}

View File

@ -43,7 +43,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demoddsd)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -62,7 +62,7 @@ if(LIBDSDCC_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
freedvdemodgui.h
)
set(TARGET_NAME demodfreedv)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -53,7 +53,7 @@ if(CODEC2_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -44,7 +44,7 @@ if(NOT SERVER_MODE)
m17statustextdialog.h
)
set(TARGET_NAME demodm17)
set(TARGET_LIB "Qt5::Widgets" Qt5::Charts)
set(TARGET_LIB "Qt::Widgets" Qt::Charts)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -63,7 +63,7 @@ if(CODEC2_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -39,7 +39,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodnfm)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodpacket)
set(TARGET_LIB "Qt5::Widgets" Qt5::Quick Qt5::QuickWidgets Qt5::Positioning)
set(TARGET_LIB "Qt::Widgets" Qt::Quick Qt::QuickWidgets Qt::Positioning)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -37,7 +37,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodpager)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -52,7 +52,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodradiosonde)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -33,7 +33,7 @@ if(NOT SERVER_MODE)
ssbdemodgui.h
)
set(TARGET_NAME demodssb)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -48,7 +48,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -36,7 +36,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodvor)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -51,7 +51,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -41,7 +41,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodvormc)
set(TARGET_LIB "Qt5::Widgets" Qt5::Quick Qt5::QuickWidgets Qt5::Positioning)
set(TARGET_LIB "Qt::Widgets" Qt::Quick Qt::QuickWidgets Qt::Positioning)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -56,7 +56,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME demodwfm)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -36,7 +36,7 @@ if(NOT SERVER_MODE)
filesinkgui.h
)
set(TARGET_NAME filesink)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -51,7 +51,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -37,7 +37,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME freqtracker)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -52,7 +52,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -36,7 +36,7 @@ if(NOT SERVER_MODE)
localsinkgui.h
)
set(TARGET_NAME localsink)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -51,7 +51,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -41,7 +41,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME noisefigure)
set(TARGET_LIB "Qt5::Widgets" Qt5::Charts)
set(TARGET_LIB "Qt::Widgets" Qt::Charts)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -56,7 +56,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -43,7 +43,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME radioastronomy)
set(TARGET_LIB "Qt5::Widgets" Qt5::Charts)
set(TARGET_LIB "Qt::Widgets" Qt::Charts)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -58,7 +58,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME radioclock)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -40,7 +40,7 @@ if(NOT SERVER_MODE)
remotesinkgui.h
)
set(TARGET_NAME remotesink)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -59,7 +59,7 @@ if(CM256CC_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
remotetcpsinkgui.h
)
set(TARGET_NAME remotetcpsink)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -36,7 +36,7 @@ if(NOT SERVER_MODE)
sigmffilesinkgui.h
)
set(TARGET_NAME sigmffilesink)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -51,7 +51,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME udpsink)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -50,9 +50,9 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
Qt5::Network
Qt::Network
sdrbase
${TARGET_LIB_GUI}
)

View File

@ -36,7 +36,7 @@ if(NOT SERVER_MODE)
filesourcegui.h
)
set(TARGET_NAME filesource)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -51,9 +51,9 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
Qt5::Network
Qt::Network
sdrbase
${TARGET_LIB_GUI}
swagger

View File

@ -38,7 +38,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME localsource)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -53,7 +53,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -41,7 +41,7 @@ if(NOT SERVER_MODE)
ieee_802_15_4_modtxsettingsdialog.h
)
set(TARGET_NAME modieee_802_15_4)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -56,7 +56,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -39,7 +39,7 @@ if(NOT SERVER_MODE)
aismodtxsettingsdialog.h
)
set(TARGET_NAME modais)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME modam)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -50,7 +50,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -38,7 +38,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME modatv)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -53,7 +53,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -42,7 +42,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME modchirpchat)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -57,7 +57,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -59,7 +59,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME moddatv)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -75,7 +75,7 @@ add_library(${TARGET_NAME} SHARED
target_link_libraries(${TARGET_NAME}
Boost::disable_autolinking
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
freedvmodgui.h
)
set(TARGET_NAME modfreedv)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -53,7 +53,7 @@ if(CODEC2_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -44,7 +44,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME modm17)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -63,7 +63,7 @@ if(CODEC2_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -37,7 +37,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME modnfm)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -52,7 +52,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -42,7 +42,7 @@ if(NOT SERVER_MODE)
packetmodtxsettingsdialog.h
)
set(TARGET_NAME modpacket)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -57,7 +57,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME modssb)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -50,7 +50,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME modwfm)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -50,7 +50,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -39,7 +39,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME remotesource)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -58,9 +58,9 @@ if(CM256CC_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
Qt5::Network
Qt::Network
sdrbase
${TARGET_LIB_GUI}
swagger

View File

@ -39,7 +39,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME udpsource)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,9 +54,9 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
Qt5::Network
Qt::Network
sdrbase
${TARGET_LIB_GUI}
swagger

View File

@ -1,14 +1,14 @@
project(feature)
if (ENABLE_FEATURE_GS232CONTROLLER AND Qt5SerialPort_FOUND)
if (ENABLE_FEATURE_GS232CONTROLLER AND Qt${QT_DEFAULT_MAJOR_VERSION}SerialPort_FOUND)
add_subdirectory(gs232controller)
endif()
if (ENABLE_FEATURE_MAP AND Qt5Quick_FOUND AND Qt5QuickWidgets_FOUND AND Qt5Positioning_FOUND AND Qt5Location_FOUND AND Qt5WebEngine_FOUND)
if (ENABLE_FEATURE_MAP AND Qt${QT_DEFAULT_MAJOR_VERSION}Quick_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}QuickWidgets_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}Positioning_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}Location_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}WebEngine_FOUND)
add_subdirectory(map)
endif()
if (ENABLE_FEATURE_VORLOCALIZER AND Qt5Quick_FOUND AND Qt5QuickWidgets_FOUND AND Qt5Positioning_FOUND)
if (ENABLE_FEATURE_VORLOCALIZER AND Qt${QT_DEFAULT_MAJOR_VERSION}Quick_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}QuickWidgets_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}Positioning_FOUND)
add_subdirectory(vorlocalizer)
endif()
@ -45,19 +45,19 @@ if (ENABLE_FEATURE_SIMPLEPTT)
endif()
if (NOT SERVER_MODE)
if (ENABLE_FEATURE_SATELLITETRACKER AND SGP4_FOUND AND Qt5Positioning_FOUND AND Qt5Charts_FOUND AND Qt5TextToSpeech_FOUND)
if (ENABLE_FEATURE_SATELLITETRACKER AND SGP4_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}Positioning_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}Charts_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}TextToSpeech_FOUND)
add_subdirectory(satellitetracker)
endif()
if (ENABLE_FEATURE_JOGDIALCONTROLLER)
add_subdirectory(jogdialcontroller)
endif()
else()
if (ENABLE_FEATURE_SATELLITETRACKER AND SGP4_FOUND AND Qt5Positioning_FOUND AND Qt5Charts_FOUND)
if (ENABLE_FEATURE_SATELLITETRACKER AND SGP4_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}Positioning_FOUND AND Qt${QT_DEFAULT_MAJOR_VERSION}Charts_FOUND)
add_subdirectory(satellitetracker)
endif()
endif()
if (Qt5Charts_FOUND)
if (Qt${QT_DEFAULT_MAJOR_VERSION}Charts_FOUND)
if (ENABLE_FEATURE_RADIOSONDE)
add_subdirectory(radiosonde)
endif()

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featureafc)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -31,7 +31,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featureais)
set(TARGET_LIB Qt5::Widgets)
set(TARGET_LIB Qt::Widgets)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -46,7 +46,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featureambe)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -50,7 +50,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -31,7 +31,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME antennatools)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -46,7 +46,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -37,7 +37,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME aprs)
set(TARGET_LIB "Qt5::Widgets" Qt5::Charts)
set(TARGET_LIB "Qt::Widgets" Qt::Charts)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -52,7 +52,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -32,7 +32,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featuredemodanalyzer)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -47,7 +47,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -33,7 +33,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featuregs232controller)
set(TARGET_LIB Qt5::Widgets)
set(TARGET_LIB Qt::Widgets)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -48,8 +48,8 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt5::SerialPort
Qt::Core
Qt::SerialPort
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -30,7 +30,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME jogdialcontroller)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -45,7 +45,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -33,7 +33,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featurelimerfe)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -48,7 +48,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -24,7 +24,7 @@ set(map_HEADERS
include_directories(
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${Qt5Gui_PRIVATE_INCLUDE_DIRS}
${Qt${QT_DEFAULT_MAJOR_VERSION}Gui_PRIVATE_INCLUDE_DIRS}
)
if(NOT SERVER_MODE)
@ -70,7 +70,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME map)
set(TARGET_LIB "Qt5::Widgets" Qt5::Quick Qt5::QuickWidgets Qt5::Positioning Qt5::Location Qt5::WebEngine Qt5::WebEngineCore Qt5::WebEngineWidgets)
set(TARGET_LIB "Qt::Widgets" Qt::Quick Qt::QuickWidgets Qt::Positioning Qt::Location Qt::WebEngine Qt::WebEngineCore Qt::WebEngineWidgets)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -85,7 +85,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -33,7 +33,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featurepertester)
set(TARGET_LIB Qt5::Widgets)
set(TARGET_LIB Qt::Widgets)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -48,7 +48,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -31,7 +31,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featureradiosonde)
set(TARGET_LIB Qt5::Widgets Qt5::Charts)
set(TARGET_LIB Qt::Widgets Qt::Charts)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -46,7 +46,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -42,7 +42,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featureremotecontrol)
set(TARGET_LIB Qt5::Widgets Qt5::Charts)
set(TARGET_LIB Qt::Widgets Qt::Charts)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -57,7 +57,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -32,7 +32,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featurerigctlserver)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -47,7 +47,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -48,12 +48,12 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featuresatellitetracker)
set(TARGET_LIB Qt5::Widgets Qt5::Positioning Qt5::Charts Qt5::TextToSpeech)
set(TARGET_LIB Qt::Widgets Qt::Positioning Qt::Charts Qt::TextToSpeech)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
set(TARGET_NAME featuresatellitetrackersrv)
set(TARGET_LIB Qt5::Positioning Qt5::Charts)
set(TARGET_LIB Qt::Positioning Qt::Charts)
set(TARGET_LIB_GUI "")
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif()
@ -67,12 +67,17 @@ if(SGP4_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}
${SGP4_LIBRARIES}
)
if (Qt6_FOUND)
target_link_libraries(${TARGET_NAME}
Qt::Core5Compat
)
endif()
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featuresimpleptt)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -44,7 +44,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME featurestartracker)
set(TARGET_LIB Qt5::Widgets Qt5::Charts)
set(TARGET_LIB Qt::Widgets Qt::Charts)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -59,7 +59,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -37,7 +37,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME vorlocalizer)
set(TARGET_LIB "Qt5::Widgets" Qt5::Quick Qt5::QuickWidgets Qt5::Positioning)
set(TARGET_LIB "Qt::Widgets" Qt::Quick Qt::QuickWidgets Qt::Positioning)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -52,7 +52,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if (NOT SERVER_MODE)
bladerf2mimogui.h
)
set(TARGET_NAME mimobladerf2)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ if(LIBBLADERF_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if (NOT SERVER_MODE)
limesdrmimogui.h
)
set(TARGET_NAME mimolimesdr)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ if(LIMESUITE_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if (NOT SERVER_MODE)
metismisogui.h
)
set(TARGET_NAME mimometismiso)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if (NOT SERVER_MODE)
plutosdrmimogui.h
)
set(TARGET_NAME mimoplutosdr)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ if(LIBIIO_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -31,7 +31,7 @@ if (NOT SERVER_MODE)
testsourcegui.h
)
set(TARGET_NAME mimotestmi)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -46,7 +46,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -30,7 +30,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputtestmosync)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -45,7 +45,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if (NOT SERVER_MODE)
xtrxmimogui.h
)
set(TARGET_NAME mimoxtrx)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -50,7 +50,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -32,7 +32,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputaudio)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -47,7 +47,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputbladerf1)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ if(LIBBLADERF_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputbladerf2)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ if(LIBBLADERF_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -32,7 +32,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputfileoutput)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -47,7 +47,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputhackrf)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -50,7 +50,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputlimesdr)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ if(LIMESUITE_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -31,7 +31,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputlocal)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -46,7 +46,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputplutosdr)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ if(LIBIIO_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -40,7 +40,7 @@ if(NOT SERVER_MODE)
remoteoutputgui.h
)
set(TARGET_NAME outputremote)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -59,7 +59,7 @@ if(CM256CC_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputsoapysdr)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -50,7 +50,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -30,7 +30,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputtestsink)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -45,7 +45,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -35,7 +35,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputusrp)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -54,7 +54,7 @@ if(UHD_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME outputxtrx)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -49,7 +49,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -33,7 +33,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME inputairspy)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -52,7 +52,7 @@ if(LIBAIRSPY_EXTERNAL AND NOT LINUX)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME inputairspyhf)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -53,7 +53,7 @@ if(LIBAIRSPYHF_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -32,7 +32,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME inputaudio)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -47,7 +47,7 @@ add_library(${TARGET_NAME} SHARED
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

View File

@ -34,7 +34,7 @@ if(NOT SERVER_MODE)
)
set(TARGET_NAME inputbladerf1)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
@ -53,7 +53,7 @@ if(LIBBLADERF_EXTERNAL)
endif()
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}

Some files were not shown because too many files have changed in this diff Show More