1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 01:18:38 -05:00

Merge pull request #2252 from srcejon/freq_scanner

Update CMakeLists.txt to allow static libraries to be built
This commit is contained in:
Edouard Griffiths 2024-09-13 21:07:04 +02:00 committed by GitHub
commit f522d88fc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
135 changed files with 1295 additions and 505 deletions

View File

@ -30,6 +30,7 @@ option(SANITIZE_MEMORY "Activate detection of leaked memory (LeakSanitizer)" OFF
option(RX_SAMPLE_24BIT "Internal 24 bit Rx DSP" ON) option(RX_SAMPLE_24BIT "Internal 24 bit Rx DSP" ON)
option(BUILD_SERVER "Build Server" ON) option(BUILD_SERVER "Build Server" ON)
option(BUILD_GUI "Build GUI" ON) option(BUILD_GUI "Build GUI" ON)
option(BUILD_BENCH "Build benchmark" ON)
option(HIDE_CONSOLE "Hide console when running GUI on Windows" ON) option(HIDE_CONSOLE "Hide console when running GUI on Windows" ON)
option(BUNDLE "Enable distribution bundle" OFF) 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. \ set(ARCH_OPT "native" CACHE STRING "Specify instruction set to use. Will be passed directly as `-march` or `/arch:` argument on supported compilers. \
@ -37,8 +38,10 @@ set(ARCH_OPT "native" CACHE STRING "Specify instruction set to use. Will be pass
option(ENABLE_QT6 "Build with Qt6 rather than Qt5" OFF) option(ENABLE_QT6 "Build with Qt6 rather than Qt5" OFF)
option(ENABLE_PROFILER "Enable runtime profiler" OFF) option(ENABLE_PROFILER "Enable runtime profiler" OFF)
set(VKFFT_BACKEND 1 CACHE STRING "vkFFT Backend: 0 - Vulkan, 1 - CUDA") set(VKFFT_BACKEND 1 CACHE STRING "vkFFT Backend: 0 - Vulkan, 1 - CUDA")
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
# Sampling devices enablers # Sampling devices enablers
option(ENABLE_AARONIARTSA "Enable AaroniaRTSA support" ON)
option(ENABLE_AIRSPY "Enable AirSpy support" ON) option(ENABLE_AIRSPY "Enable AirSpy support" ON)
option(ENABLE_AIRSPYHF "Enable AirSpyHF support" ON) option(ENABLE_AIRSPYHF "Enable AirSpyHF support" ON)
option(ENABLE_BLADERF "Enable bladeRF support" ON) option(ENABLE_BLADERF "Enable bladeRF support" ON)
@ -46,6 +49,7 @@ option(ENABLE_FUNCUBE "Enable FUNcube support" ON)
option(ENABLE_HACKRF "Enable HackRF support" ON) option(ENABLE_HACKRF "Enable HackRF support" ON)
option(ENABLE_IIO "Enable liniio support like PlutoSDR" ON) option(ENABLE_IIO "Enable liniio support like PlutoSDR" ON)
option(ENABLE_LIMESUITE "Enable limesuite support" ON) option(ENABLE_LIMESUITE "Enable limesuite support" ON)
option(ENABLE_METIS "Enable Metis support" ON)
option(ENABLE_MIRISDR "Enable LibMiri for old SDRPlay" ON) option(ENABLE_MIRISDR "Enable LibMiri for old SDRPlay" ON)
option(ENABLE_PERSEUS "Enable perseus support" ON) option(ENABLE_PERSEUS "Enable perseus support" ON)
option(ENABLE_RTLSDR "Enable rtl-sdr support" ON) option(ENABLE_RTLSDR "Enable rtl-sdr support" ON)
@ -182,7 +186,7 @@ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git/")
endif() endif()
find_program(CCACHE "ccache") find_program(CCACHE "ccache")
if(CCACHE) if(CCACHE AND NOT EMSCRIPTEN)
message(STATUS "Using ccache ${CCACHE}") message(STATUS "Using ccache ${CCACHE}")
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE}) set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE}) set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
@ -190,7 +194,7 @@ if(CCACHE)
set(CMAKE_OBJCXX_COMPILER_LAUNCHER ${CCACHE}) set(CMAKE_OBJCXX_COMPILER_LAUNCHER ${CCACHE})
endif() endif()
set(ENV{CCACHE_SLOPPINESS} pch_defines,time_macros) set(ENV{CCACHE_SLOPPINESS} pch_defines,time_macros)
endif(CCACHE) endif()
set(sdrangel_VERSION "${sdrangel_VERSION_MAJOR}.${sdrangel_VERSION_MINOR}.${sdrangel_VERSION_PATCH}${sdrangel_VERSION_SUFFIX}" CACHE INTERNAL "") set(sdrangel_VERSION "${sdrangel_VERSION_MAJOR}.${sdrangel_VERSION_MINOR}.${sdrangel_VERSION_PATCH}${sdrangel_VERSION_SUFFIX}" CACHE INTERNAL "")
message(STATUS "${APPLICATION_NAME} Version: ${sdrangel_VERSION}") message(STATUS "${APPLICATION_NAME} Version: ${sdrangel_VERSION}")
@ -876,7 +880,9 @@ if (FFTW3F_FOUND)
set(WDSP_SUPPORT ON CACHE INTERNAL "") set(WDSP_SUPPORT ON CACHE INTERNAL "")
endif() endif()
if (BUILD_BENCH)
add_subdirectory(sdrbench) add_subdirectory(sdrbench)
endif()
if (BUILD_GUI) if (BUILD_GUI)
add_subdirectory(sdrgui) add_subdirectory(sdrgui)
@ -947,6 +953,7 @@ else()
endif() endif()
############ build sdrangel benchmark ################ ############ build sdrangel benchmark ################
if (BUILD_BENCH)
set(sdrangelbench_SOURCES set(sdrangelbench_SOURCES
appbench/main.cpp appbench/main.cpp
) )
@ -960,6 +967,7 @@ target_link_libraries(sdrangelbench
sdrbench sdrbench
logging logging
) )
endif()
############ build sdrangel gui ################ ############ build sdrangel gui ################
if (BUILD_GUI) if (BUILD_GUI)
@ -1053,7 +1061,9 @@ if (BUILD_SERVER)
endif() endif()
############ install ################## ############ install ##################
if (BUILD_BENCH)
install(TARGETS sdrangelbench DESTINATION ${INSTALL_BIN_DIR}) install(TARGETS sdrangelbench DESTINATION ${INSTALL_BIN_DIR})
endif()
if (BUILD_GUI) if (BUILD_GUI)
install(TARGETS ${CMAKE_PROJECT_NAME} DESTINATION ${INSTALL_BIN_DIR}) install(TARGETS ${CMAKE_PROJECT_NAME} DESTINATION ${INSTALL_BIN_DIR})
endif() endif()

View File

@ -39,10 +39,14 @@ include_directories(
${CMAKE_SOURCE_DIR}/sdrbase ${CMAKE_SOURCE_DIR}/sdrbase
) )
add_library(ft8 SHARED add_library(ft8
${ft8_SOURCES} ${ft8_SOURCES}
) )
if(DEFINED FFTW3F_DEPENDS)
add_dependencies(ft8 "${FFTW3F_DEPENDS}")
endif()
target_link_libraries(ft8 target_link_libraries(ft8
Boost::disable_autolinking Boost::disable_autolinking
${FFTW3F_LIBRARIES} ${FFTW3F_LIBRARIES}

View File

@ -35,7 +35,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/exports ${CMAKE_SOURCE_DIR}/exports
) )
add_library(httpserver SHARED add_library(httpserver
${httpserver_SOURCES} ${httpserver_SOURCES}
) )

View File

@ -21,7 +21,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/exports ${CMAKE_SOURCE_DIR}/exports
) )
add_library(logging SHARED add_library(logging
${logging_SOURCES} ${logging_SOURCES}
) )

View File

@ -47,7 +47,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/exports ${CMAKE_SOURCE_DIR}/exports
) )
add_library(modemm17 SHARED add_library(modemm17
${modemm17_SOURCES} ${modemm17_SOURCES}
) )

View File

@ -45,11 +45,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${beamsteeringcwmod_SOURCES} add_library(${TARGET_NAME} ${beamsteeringcwmod_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME BeamSteeringCWModPlugin ${beamsteeringcwmod_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -49,11 +49,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${doa2_SOURCES} add_library(${TARGET_NAME} ${doa2_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME DOA2Plugin ${doa2_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -47,11 +47,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${interferometer_SOURCES} add_library(${TARGET_NAME} ${interferometer_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME InterferometerPlugin ${interferometer_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -29,11 +29,17 @@ include_directories(
set(TARGET_NAME ${PLUGINS_PREFIX}chanalyzer) set(TARGET_NAME ${PLUGINS_PREFIX}chanalyzer)
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${chanalyzer_SOURCES} add_library(${TARGET_NAME} ${chanalyzer_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME ChannelAnalyzerPlugin ${chanalyzer_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
Qt::Widgets Qt::Widgets
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${channelpower_SOURCES} add_library(${TARGET_NAME} ${channelpower_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME ChannelPowerPlugin ${channelpower_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodais_SOURCES} add_library(${TARGET_NAME} ${demodais_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AISDemodPlugin ${demodais_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -48,11 +48,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${am_SOURCES} add_library(${TARGET_NAME} ${am_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AMDemodPlugin ${am_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -29,11 +29,17 @@ include_directories(
set(TARGET_NAME ${PLUGINS_PREFIX}demodatv) set(TARGET_NAME ${PLUGINS_PREFIX}demodatv)
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${atv_SOURCES} add_library(${TARGET_NAME} ${atv_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME ATVDemodPlugin ${atv_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
Qt::Widgets Qt::Widgets
sdrbase sdrbase

View File

@ -55,11 +55,18 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED
${bfm_SOURCES}
)
target_link_libraries(${TARGET_NAME} if(NOT Qt6_FOUND)
add_library(${TARGET_NAME} ${bfm_SOURCES})
else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME BFMPlugin ${bfm_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -59,11 +59,18 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED
${chirpchat_SOURCES}
)
target_link_libraries(${TARGET_NAME} if(NOT Qt6_FOUND)
add_library(${TARGET_NAME} ${chirpchat_SOURCES})
else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME ChirpChatDemodPlugin ${chirpchat_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -49,11 +49,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demoddab_SOURCES} add_library(${TARGET_NAME} ${demoddab_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME DABDemodPlugin ${demoddab_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -71,12 +71,18 @@ include_directories(
set(TARGET_NAME ${PLUGINS_PREFIX}demoddatv) set(TARGET_NAME ${PLUGINS_PREFIX}demoddatv)
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
add_library(${TARGET_NAME} SHARED
${datv_SOURCES}
${ldpc_SOURCES}
)
target_link_libraries(${TARGET_NAME} if(NOT Qt6_FOUND)
add_library(${TARGET_NAME} ${datv_SOURCES} ${ldpc_SOURCES})
else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME DATVDemodPlugin ${datv_SOURCES} ${ldpc_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
Qt::Widgets Qt::Widgets
Qt::Multimedia Qt::Multimedia

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demoddsc_SOURCES} add_library(${TARGET_NAME} ${demoddsc_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME DSCDemodPlugin ${demoddsc_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -53,15 +53,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${dsddemod_SOURCES} add_library(${TARGET_NAME} ${dsddemod_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME DSDDemodPlugin ${dsddemod_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(LIBDSDCC_EXTERNAL) if(LIBDSDCC_EXTERNAL)
add_dependencies(${TARGET_NAME} dsdcc mbelib) add_dependencies(${TARGET_NAME} dsdcc mbelib)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -46,11 +46,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodendoftrain_SOURCES} add_library(${TARGET_NAME} ${demodendoftrain_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME EndOfTrainDemodPlugin ${demodendoftrain_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,15 +44,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${freedv_SOURCES} add_library(${TARGET_NAME} ${freedv_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME FreeDVDemodPlugin ${freedv_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(CODEC2_EXTERNAL) if(CODEC2_EXTERNAL)
add_dependencies(${TARGET_NAME} codec2) add_dependencies(${TARGET_NAME} codec2)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -54,11 +54,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodft8_SOURCES} add_library(${TARGET_NAME} ${demodft8_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME FT8Plugin ${demodft8_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodils_SOURCES} add_library(${TARGET_NAME} ${demodils_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME ILSDemodPlugin ${demodils_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -54,15 +54,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${m17_SOURCES} add_library(${TARGET_NAME} ${m17_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME M17DemodPlugin ${m17_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(CODEC2_EXTERNAL) if(CODEC2_EXTERNAL)
add_dependencies(${TARGET_NAME} codec2) add_dependencies(${TARGET_NAME} codec2)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodnavtex_SOURCES} add_library(${TARGET_NAME} ${demodnavtex_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME NavtexDemodPlugin ${demodnavtex_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -49,11 +49,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${nfm_SOURCES} add_library(${TARGET_NAME} ${nfm_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME NFMPlugin ${nfm_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodpacket_SOURCES} add_library(${TARGET_NAME} ${demodpacket_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME PacketDemodPlugin ${demodpacket_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -47,11 +47,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodpager_SOURCES} add_library(${TARGET_NAME} ${demodpager_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME PagerDemodPlugin ${demodpager_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodradiosonde_SOURCES} add_library(${TARGET_NAME} ${demodradiosonde_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RadiosondeDemodPlugin ${demodradiosonde_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodrtty_SOURCES} add_library(${TARGET_NAME} ${demodrtty_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RttyDemodPlugin ${demodrtty_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -43,11 +43,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${ssb_SOURCES} add_library(${TARGET_NAME} ${ssb_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME SSBPlugin ${ssb_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -46,11 +46,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${vor_SOURCES} add_library(${TARGET_NAME} ${vor_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME VORDemodPlugin ${vor_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${wfm_SOURCES} add_library(${TARGET_NAME} ${wfm_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME WFMPlugin ${wfm_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -46,11 +46,18 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED
${filesink_SOURCES}
)
target_link_libraries(${TARGET_NAME} if(NOT Qt6_FOUND)
add_library(${TARGET_NAME} ${filesink_SOURCES})
else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME FileSinkPlugin ${filesink_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -47,11 +47,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${freqscanner_SOURCES} add_library(${TARGET_NAME} ${freqscanner_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME FreqScannerPlugin ${freqscanner_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -47,11 +47,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${freqtracker_SOURCES} add_library(${TARGET_NAME} ${freqtracker_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME FreqTrackerPlugin ${freqtracker_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${heatmap_SOURCES} add_library(${TARGET_NAME} ${heatmap_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME HeatMapPlugin ${heatmap_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -46,11 +46,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${localsink_SOURCES} add_library(${TARGET_NAME} ${localsink_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME LocalSinkPlugin ${localsink_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -51,11 +51,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${noisefigure_SOURCES} add_library(${TARGET_NAME} ${noisefigure_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME NoiseFigurePlugin ${noisefigure_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${radioclock_SOURCES} add_library(${TARGET_NAME} ${radioclock_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RadioClockPlugin ${radioclock_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -50,15 +50,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${remotesink_SOURCES} add_library(${TARGET_NAME} ${remotesink_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RemoteSinkPlugin ${remotesink_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(CM256CC_EXTERNAL) if(CM256CC_EXTERNAL)
add_dependencies(${TARGET_NAME} cm256cc) add_dependencies(${TARGET_NAME} cm256cc)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -46,11 +46,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${sigmffilesink_SOURCES} add_library(${TARGET_NAME} ${sigmffilesink_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME SigMFSinkPlugin ${sigmffilesink_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,11 +45,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${udpsink_SOURCES} add_library(${TARGET_NAME} ${udpsink_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME UDPSinkPlugin ${udpsink_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
Qt::Network Qt::Network

View File

@ -72,11 +72,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${wdsprx_SOURCES} add_library(${TARGET_NAME} ${wdsprx_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME WDSPRxPlugin ${wdsprx_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -46,11 +46,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${filesource_SOURCES} add_library(${TARGET_NAME} ${filesource_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME FileSourcePlugin ${filesource_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
Qt::Network Qt::Network

View File

@ -48,11 +48,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${localsource_SOURCES} add_library(${TARGET_NAME} ${localsource_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME LocalSourcePlugin ${localsource_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -51,11 +51,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${mod_ieee_802_15_4_SOURCES} add_library(${TARGET_NAME} ${mod_ieee_802_15_4_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME IEEE_802_15_4_ModPlugin ${mod_ieee_802_15_4_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -49,11 +49,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modais_SOURCES} add_library(${TARGET_NAME} ${modais_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AISModPlugin ${modais_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,11 +45,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modam_SOURCES} add_library(${TARGET_NAME} ${modam_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AMModPlugin ${modam_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -48,11 +48,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modatv_SOURCES} add_library(${TARGET_NAME} ${modatv_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME ATVModPlugin ${modatv_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -60,11 +60,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modchirpchat_SOURCES} add_library(${TARGET_NAME} ${modchirpchat_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME ChirpChatModPlugin ${modchirpchat_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -69,11 +69,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${moddatv_SOURCES} add_library(${TARGET_NAME} ${moddatv_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME DATVModPlugin ${moddatv_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Boost::disable_autolinking Boost::disable_autolinking
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}

View File

@ -44,15 +44,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modfreedv_SOURCES} add_library(${TARGET_NAME} ${modfreedv_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME FreeDVModPlugin ${modfreedv_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(CODEC2_EXTERNAL) if(CODEC2_EXTERNAL)
add_dependencies(${TARGET_NAME} codec2) add_dependencies(${TARGET_NAME} codec2)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -54,15 +54,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modm17_SOURCES} add_library(${TARGET_NAME} ${modm17_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME M17ModPlugin ${modm17_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(CODEC2_EXTERNAL) if(CODEC2_EXTERNAL)
add_dependencies(${TARGET_NAME} codec2) add_dependencies(${TARGET_NAME} codec2)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -47,11 +47,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modnfm_SOURCES} add_library(${TARGET_NAME} ${modnfm_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME NFMModPlugin ${modnfm_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -52,11 +52,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modpacket_SOURCES} add_library(${TARGET_NAME} ${modpacket_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME PacketModPlugin ${modpacket_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -49,11 +49,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modpsk31_SOURCES} add_library(${TARGET_NAME} ${modpsk31_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME PSK31Plugin ${modpsk31_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -49,11 +49,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modrtty_SOURCES} add_library(${TARGET_NAME} ${modrtty_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RttyModPlugin ${modrtty_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,11 +45,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modssb_SOURCES} add_library(${TARGET_NAME} ${modssb_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME SSBModPlugin ${modssb_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,11 +45,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${modwfm_SOURCES} add_library(${TARGET_NAME} ${modwfm_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME WFMModPlugin ${modwfm_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -49,15 +49,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${remotesource_SOURCES} add_library(${TARGET_NAME} ${remotesource_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RemoteSourcePlugin ${remotesource_SOURCES})
endif()
if(CM256CC_EXTERNAL) if(CM256CC_EXTERNAL)
add_dependencies(${TARGET_NAME} cm256cc) add_dependencies(${TARGET_NAME} cm256cc)
endif() endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
Qt::Network Qt::Network

View File

@ -49,11 +49,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${udpsource_SOURCES} add_library(${TARGET_NAME} ${udpsource_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME UDPSourcePlugin ${udpsource_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
Qt::Network Qt::Network

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${afc_SOURCES} add_library(${TARGET_NAME} ${afc_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AFCPlugin ${afc_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -41,11 +41,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${ais_SOURCES} add_library(${TARGET_NAME} ${ais_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AISPlugin ${ais_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,11 +45,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${ambe_SOURCES} add_library(${TARGET_NAME} ${ambe_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AMBEPlugin ${ambe_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -47,11 +47,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${aprs_SOURCES} add_library(${TARGET_NAME} ${aprs_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME APRSPlugin ${aprs_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -42,11 +42,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${demodanalyzer_SOURCES} add_library(${TARGET_NAME} ${demodanalyzer_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME DemodAnalyzerPlugin ${demodanalyzer_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -74,11 +74,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${gs232controller_SOURCES} add_library(${TARGET_NAME} ${gs232controller_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME GS232ControllerPlugin ${gs232controller_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
Qt::SerialPort Qt::SerialPort
${TARGET_LIB} ${TARGET_LIB}

View File

@ -40,11 +40,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${jogdialcontroller_SOURCES} add_library(${TARGET_NAME} ${jogdialcontroller_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME JogDialControllerPlugin ${jogdialcontroller_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -43,11 +43,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${limerfe_SOURCES} add_library(${TARGET_NAME} ${limerfe_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME LimeRFEPlugin ${limerfe_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -43,11 +43,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${morsedecoder_SOURCES} add_library(${TARGET_NAME} ${morsedecoder_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME MorseDecoderPlugin ${morsedecoder_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -43,11 +43,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${pertester_SOURCES} add_library(${TARGET_NAME} ${pertester_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME PERTesterPlugin ${pertester_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${radiosonde_SOURCES} add_library(${TARGET_NAME} ${radiosonde_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RadiosondePlugin ${radiosonde_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -52,11 +52,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${remotecontrol_SOURCES} add_library(${TARGET_NAME} ${remotecontrol_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RemoteControlPlugin ${remotecontrol_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -42,11 +42,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${rigctlserver_SOURCES} add_library(${TARGET_NAME} ${rigctlserver_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RigCtlServerPlugin ${rigctlserver_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -49,6 +49,9 @@ if(NOT SERVER_MODE)
set(TARGET_NAME ${PLUGINS_PREFIX}featuresatellitetracker) set(TARGET_NAME ${PLUGINS_PREFIX}featuresatellitetracker)
set(TARGET_LIB Qt::Widgets Qt::Positioning Qt::Charts Qt::TextToSpeech) set(TARGET_LIB Qt::Widgets Qt::Positioning Qt::Charts Qt::TextToSpeech)
if(Qt${QT_DEFAULT_MAJOR_VERSION}TextToSpeech_FOUND)
list(APPEND TARGET_LIB Qt::TextToSpeech)
endif()
set(TARGET_LIB_GUI "sdrgui") set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else() else()
@ -58,15 +61,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${satellitetracker_SOURCES} add_library(${TARGET_NAME} ${satellitetracker_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME SatelliteTrackerPlugin ${satellitetracker_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(SGP4_EXTERNAL) if(SGP4_EXTERNAL)
add_dependencies(${TARGET_NAME} sgp4) add_dependencies(${TARGET_NAME} sgp4)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase
@ -74,9 +83,7 @@ target_link_libraries(${TARGET_NAME}
${SGP4_LIBRARIES} ${SGP4_LIBRARIES}
) )
if (Qt6_FOUND) if (Qt6_FOUND)
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE Qt::Core5Compat)
Qt::Core5Compat
)
endif() endif()
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER}) install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})

View File

@ -51,11 +51,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${simpleptt_SOURCES} add_library(${TARGET_NAME} ${simpleptt_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME SimplePTTPlugin ${simpleptt_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -67,11 +67,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${skymap_SOURCES} add_library(${TARGET_NAME} ${skymap_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME SkyMapPlugin ${skymap_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -54,11 +54,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${startracker_SOURCES} add_library(${TARGET_NAME} ${startracker_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME StarTrackerPlugin ${startracker_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -31,6 +31,11 @@ else()
message(STATUS "Not building audiocatsiso (hamlib_FOUND=${hamlib_FOUND})") message(STATUS "Not building audiocatsiso (hamlib_FOUND=${hamlib_FOUND})")
endif() endif()
add_subdirectory(metismiso) if(ENABLE_METIS)
add_subdirectory(metismiso)
else()
message(STATUS "Not building metis (ENABLE_METIS=${ENABLE_METIS}")
endif()
add_subdirectory(testmi) add_subdirectory(testmi)
add_subdirectory(testmosync) add_subdirectory(testmosync)

View File

@ -52,11 +52,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${audiocatsiso_SOURCES} add_library(${TARGET_NAME} ${audiocatsiso_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AudioCATSISOPlugin ${audiocatsiso_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,15 +45,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${bladerf2mimo_SOURCES} add_library(${TARGET_NAME} ${bladerf2mimo_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME BladeRF2MIMOPlugin ${bladerf2mimo_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(LIBBLADERF_EXTERNAL) if(LIBBLADERF_EXTERNAL)
add_dependencies(${TARGET_NAME} bladerf) add_dependencies(${TARGET_NAME} bladerf)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,15 +45,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${limesdrmimo_SOURCES} add_library(${TARGET_NAME} ${limesdrmimo_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME LimeSDRMIMOPlugin ${limesdrmimo_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(LIMESUITE_EXTERNAL) if(LIMESUITE_EXTERNAL)
add_dependencies(${TARGET_NAME} limesuite) add_dependencies(${TARGET_NAME} limesuite)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -44,11 +44,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${metismiso_SOURCES} add_library(${TARGET_NAME} ${metismiso_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME MetisMISOPlugin ${metismiso_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,15 +45,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${plutosdrmimo_SOURCES} add_library(${TARGET_NAME} ${plutosdrmimo_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME PlutoSDRMIMOPlugin ${plutosdrmimo_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(LIBIIO_EXTERNAL) if(LIBIIO_EXTERNAL)
add_dependencies(${TARGET_NAME} libiio) add_dependencies(${TARGET_NAME} libiio)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -41,11 +41,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${testmi_SOURCES} add_library(${TARGET_NAME} ${testmi_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME TestMIPlugin ${testmi_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -40,11 +40,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${testmosync_SOURCES} add_library(${TARGET_NAME} ${testmosync_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME TestMOSyncPlugin ${testmosync_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -4,7 +4,12 @@ add_subdirectory(testsink)
add_subdirectory(fileoutput) add_subdirectory(fileoutput)
add_subdirectory(localoutput) add_subdirectory(localoutput)
add_subdirectory(audiooutput) add_subdirectory(audiooutput)
add_subdirectory(aaroniartsaoutput)
if(ENABLE_AARONIARTSA)
add_subdirectory(aaroniartsaoutput)
else()
message(STATUS "Not building aaroniartsaoutput (ENABLE_AARONIARTSA=${ENABLE_AARONIARTSA})")
endif()
if (CM256CC_FOUND AND (HAS_SSE3 OR HAS_NEON)) if (CM256CC_FOUND AND (HAS_SSE3 OR HAS_NEON))
add_subdirectory(remoteoutput) add_subdirectory(remoteoutput)

View File

@ -42,11 +42,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${aaroniartsaoutput_SOURCES} add_library(${TARGET_NAME} ${aaroniartsaoutput_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AaroniaRTSAOutputPlugin ${aaroniartsaoutput_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -42,11 +42,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${audiooutput_SOURCES} add_library(${TARGET_NAME} ${audiooutput_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME AudioOutputPlugin ${audiooutput_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if (EMSCRIPTEN AND BUILD_SHARED_LIBS)
target_link_options(${TARGET_NAME} PUBLIC -sEXPORT_NAME=${TARGET_NAME} -sSIDE_MODULE)
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,15 +45,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${bladerf1output_SOURCES} add_library(${TARGET_NAME} ${bladerf1output_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME Bladerf1OutputPlugin ${bladerf1output_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(LIBBLADERF_EXTERNAL) if(LIBBLADERF_EXTERNAL)
add_dependencies(${TARGET_NAME} bladerf) add_dependencies(${TARGET_NAME} bladerf)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,15 +45,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${bladerf2output_SOURCES} add_library(${TARGET_NAME} ${bladerf2output_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME BladeRF2OutputPlugin ${bladerf2output_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(LIBBLADERF_EXTERNAL) if(LIBBLADERF_EXTERNAL)
add_dependencies(${TARGET_NAME} bladerf) add_dependencies(${TARGET_NAME} bladerf)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -42,11 +42,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${fileoutput_SOURCES} add_library(${TARGET_NAME} ${fileoutput_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME FileOutputPlugin ${fileoutput_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,11 +45,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${hackrfoutput_SOURCES} add_library(${TARGET_NAME} ${hackrfoutput_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME HackRFOutputPlugin ${hackrfoutput_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,15 +45,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${limesdroutput_SOURCES} add_library(${TARGET_NAME} ${limesdroutput_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME LimeSDROutputPlugin ${limesdroutput_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(LIMESUITE_EXTERNAL) if(LIMESUITE_EXTERNAL)
add_dependencies(${TARGET_NAME} limesuite) add_dependencies(${TARGET_NAME} limesuite)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -41,11 +41,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${localoutput_SOURCES} add_library(${TARGET_NAME} ${localoutput_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME LocalOutputPlugin ${localoutput_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,15 +45,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${plutosdroutput_SOURCES} add_library(${TARGET_NAME} ${plutosdroutput_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME PlutoSDROutputPlugin ${plutosdroutput_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(LIBIIO_EXTERNAL) if(LIBIIO_EXTERNAL)
add_dependencies(${TARGET_NAME} libiio) add_dependencies(${TARGET_NAME} libiio)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -50,15 +50,21 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${remoteoutput_SOURCES} add_library(${TARGET_NAME} ${remoteoutput_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME RemoteOutputPlugin ${remoteoutput_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
if(CM256CC_EXTERNAL) if(CM256CC_EXTERNAL)
add_dependencies(${TARGET_NAME} cm256cc) add_dependencies(${TARGET_NAME} cm256cc)
endif() endif()
target_link_libraries(${TARGET_NAME} target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -45,11 +45,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${soapysdroutput_SOURCES} add_library(${TARGET_NAME} ${soapysdroutput_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME SoapySDROutputPlugin ${soapysdroutput_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

View File

@ -40,11 +40,17 @@ else()
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif() endif()
add_library(${TARGET_NAME} SHARED if(NOT Qt6_FOUND)
${testsink_SOURCES} add_library(${TARGET_NAME} ${testsink_SOURCES})
) else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME TestSinkPlugin ${testsink_SOURCES})
endif()
target_link_libraries(${TARGET_NAME} if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
target_link_libraries(${TARGET_NAME} PRIVATE
Qt::Core Qt::Core
${TARGET_LIB} ${TARGET_LIB}
sdrbase sdrbase

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