2014-05-18 11:52:39 -04:00
|
|
|
project(demod)
|
|
|
|
|
2024-03-03 08:40:42 -05:00
|
|
|
if (ENABLE_CHANNELRX_ENDOFTRAIN)
|
|
|
|
add_subdirectory(demodendoftrain)
|
|
|
|
endif()
|
|
|
|
|
2023-09-28 13:23:15 -04:00
|
|
|
if (ENABLE_CHANNELRX_FREQSCANNER)
|
|
|
|
add_subdirectory(freqscanner)
|
|
|
|
endif()
|
|
|
|
|
2022-11-17 18:26:54 -05:00
|
|
|
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 AND Qt${QT_DEFAULT_MAJOR_VERSION}TextToSpeech_FOUND)
|
2020-10-27 12:22:10 -04:00
|
|
|
add_subdirectory(demodadsb)
|
2022-05-01 17:33:12 -04:00
|
|
|
# add_subdirectory(demodvormc)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodadsb (ENABLE_CHANNELRX_DEMODADSB=${ENABLE_CHANNELRX_DEMODADSB} Qt${QT_DEFAULT_MAJOR_VERSION}Quick_FOUND=${Qt${QT_DEFAULT_MAJOR_VERSION}Quick_FOUND} Qt${QT_DEFAULT_MAJOR_VERSION}QuickWidgets_FOUND=${Qt${QT_DEFAULT_MAJOR_VERSION}QuickWidgets_FOUND} Qt${QT_DEFAULT_MAJOR_VERSION}Positioning_FOUND=${Qt${QT_DEFAULT_MAJOR_VERSION}Positioning_FOUND} Qt${QT_DEFAULT_MAJOR_VERSION}TextToSpeech_FOUND=${Qt${QT_DEFAULT_MAJOR_VERSION}TextToSpeech_FOUND})")
|
2020-10-27 12:22:10 -04:00
|
|
|
endif()
|
2020-11-28 01:14:06 -05:00
|
|
|
|
2022-06-25 05:56:45 -04:00
|
|
|
if (ENABLE_CHANNELRX_DEMODAM)
|
|
|
|
add_subdirectory(demodam)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodam (ENABLE_CHANNELRX_DEMODAM=${ENABLE_CHANNELRX_DEMODAM})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODBFM)
|
|
|
|
add_subdirectory(demodbfm)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodbfm (ENABLE_CHANNELRX_DEMODBFM=${ENABLE_CHANNELRX_DEMODBFM})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODNFM)
|
|
|
|
add_subdirectory(demodnfm)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodnfm (ENABLE_CHANNELRX_DEMODNFM=${ENABLE_CHANNELRX_DEMODNFM})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODSSB)
|
|
|
|
add_subdirectory(demodssb)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodssb (ENABLE_CHANNELRX_DEMODSSB=${ENABLE_CHANNELRX_DEMODSSB})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_UDPSINK)
|
|
|
|
add_subdirectory(udpsink)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building udpsink (ENABLE_CHANNELRX_UDPSINK=${ENABLE_CHANNELRX_UDPSINK})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODWFM)
|
|
|
|
add_subdirectory(demodwfm)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodwfm (ENABLE_CHANNELRX_DEMODWFM=${ENABLE_CHANNELRX_DEMODWFM})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_LOCALSINK)
|
|
|
|
add_subdirectory(localsink)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building localsink (ENABLE_CHANNELRX_LOCALSINK=${ENABLE_CHANNELRX_LOCALSINK})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_FILESINK)
|
|
|
|
add_subdirectory(filesink)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building filesink (ENABLE_CHANNELRX_FILESINK=${ENABLE_CHANNELRX_FILESINK})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_FREQTRACKER)
|
|
|
|
add_subdirectory(freqtracker)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building freqtracker (ENABLE_CHANNELRX_FREQTRACKER=${ENABLE_CHANNELRX_FREQTRACKER})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODCHIRPCHAT)
|
|
|
|
add_subdirectory(demodchirpchat)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodchirpchat (ENABLE_CHANNELRX_DEMODCHIRPCHAT=${ENABLE_CHANNELRX_DEMODCHIRPCHAT})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODVOR)
|
|
|
|
add_subdirectory(demodvor)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodvor (ENABLE_CHANNELRX_DEMODVOR=${ENABLE_CHANNELRX_DEMODVOR})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODPACKET)
|
|
|
|
add_subdirectory(demodpacket)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodpacket (ENABLE_CHANNELRX_DEMODPACKET=${ENABLE_CHANNELRX_DEMODPACKET})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODAIS)
|
|
|
|
add_subdirectory(demodais)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodais (ENABLE_CHANNELRX_DEMODAIS=${ENABLE_CHANNELRX_DEMODAIS})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODPAGER)
|
|
|
|
add_subdirectory(demodpager)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodpager (ENABLE_CHANNELRX_DEMODPAGER=${ENABLE_CHANNELRX_DEMODPAGER})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_RADIOCLOCK)
|
|
|
|
add_subdirectory(radioclock)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building radioclock (ENABLE_CHANNELRX_RADIOCLOCK=${ENABLE_CHANNELRX_RADIOCLOCK})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_RADIOASTRONOMY)
|
|
|
|
add_subdirectory(radioastronomy)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building radioastronomy (ENABLE_CHANNELRX_RADIOASTRONOMY=${ENABLE_CHANNELRX_RADIOASTRONOMY})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODRADIOSONDE)
|
|
|
|
add_subdirectory(demodradiosonde)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodradiosonde (ENABLE_CHANNELRX_DEMODRADIOSONDE=${ENABLE_CHANNELRX_DEMODRADIOSONDE})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ENABLE_CHANNELRX_DEMODDAB AND DAB_FOUND AND ZLIB_FOUND AND FAAD_FOUND)
|
2021-04-16 17:56:15 -04:00
|
|
|
add_subdirectory(demoddab)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demoddab (ENABLE_CHANNELRX_DEMODDAB=${ENABLE_CHANNELRX_DEMODDAB} DAB_FOUND=${DAB_FOUND} ZLIB_FOUND=${ZLIB_FOUND} FAAD_FOUND=${FAAD_FOUND})")
|
2021-04-16 17:56:15 -04:00
|
|
|
endif()
|
|
|
|
|
2022-06-25 05:56:45 -04:00
|
|
|
if(ENABLE_CHANNELRX_DEMODAPT AND APT_FOUND AND SGP4_FOUND)
|
2021-02-26 15:40:23 -05:00
|
|
|
add_subdirectory(demodapt)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodapt (ENABLE_CHANNELRX_DEMODAPT=${ENABLE_CHANNELRX_DEMODAPT} APT_FOUND=${APT_FOUND} SGP4_FOUND=${SGP4_FOUND})")
|
2021-02-26 15:40:23 -05:00
|
|
|
endif()
|
|
|
|
|
2022-06-25 05:56:45 -04:00
|
|
|
if(ENABLE_CHANNELRX_DEMODDSD AND LIBDSDCC_FOUND AND LIBMBE_FOUND)
|
2016-04-07 07:05:53 -04:00
|
|
|
add_subdirectory(demoddsd)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demoddsd (ENABLE_CHANNELRX_DEMODDSD=${ENABLE_CHANNELRX_DEMODDSD} LIBDSDCC_FOUND=${LIBDSDCC_FOUND} LIBMBE_FOUND=${LIBMBE_FOUND})")
|
2022-09-15 13:49:30 -04:00
|
|
|
endif()
|
2016-10-25 18:57:46 -04:00
|
|
|
|
2022-06-25 05:56:45 -04:00
|
|
|
if (ENABLE_CHANNELRX_REMOTESINK AND CM256CC_FOUND AND (HAS_SSE3 OR HAS_NEON))
|
2019-12-11 17:19:22 -05:00
|
|
|
add_subdirectory(remotesink)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building remotesink (ENABLE_CHANNELRX_REMOTESINK=${ENABLE_CHANNELRX_REMOTESINK} CM256CC_FOUND=${CM256CC_FOUND} HAS_SSE3=${HAS_SSE3} HAS_NEON=${HAS_NEON})")
|
2020-11-23 15:16:25 -05:00
|
|
|
endif()
|
2018-09-04 19:32:29 -04:00
|
|
|
|
2022-07-19 05:10:20 -04:00
|
|
|
if (ENABLE_CHANNELRX_REMOTETCPSINK)
|
|
|
|
add_subdirectory(remotetcpsink)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building remotetcpsink (ENABLE_CHANNELRX_REMOTETCPSINK=${ENABLE_CHANNELRX_REMOTETCPSINK})")
|
2022-07-19 05:10:20 -04:00
|
|
|
endif()
|
|
|
|
|
2022-06-25 05:56:45 -04:00
|
|
|
if (ENABLE_CHANNELRX_DEMODFREEDV AND CODEC2_FOUND)
|
2019-02-24 18:13:57 -05:00
|
|
|
add_subdirectory(demodfreedv)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodfreedv (ENABLE_CHANNELRX_DEMODFREEDV=${ENABLE_CHANNELRX_DEMODFREEDV} CODEC2_FOUND=${CODEC2_FOUND})")
|
2022-06-29 22:32:00 -04:00
|
|
|
endif()
|
|
|
|
|
2022-09-06 16:10:25 -04:00
|
|
|
if (ENABLE_CHANNELRX_DEMODM17 AND CODEC2_FOUND)
|
2022-06-04 18:54:59 -04:00
|
|
|
add_subdirectory(demodm17)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodm17 (ENABLE_CHANNELRX_DEMODFREEDV=${ENABLE_CHANNELRX_DEMODM17} CODEC2_FOUND=${CODEC2_FOUND})")
|
2022-06-29 22:32:00 -04:00
|
|
|
endif()
|
2019-02-24 18:13:57 -05:00
|
|
|
|
2023-05-26 03:28:12 -04:00
|
|
|
if (ENABLE_CHANNELRX_SIGMFFILESINK AND LIBSIGMF_FOUND)
|
2020-11-10 05:06:39 -05:00
|
|
|
add_subdirectory(sigmffilesink)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building sigmffilesink (ENABLE_CHANNELRX_SIGMFFILESINK=${ENABLE_CHANNELRX_SIGMFFILESINK} LIBSIGMF_FOUND=${LIBSIGMF_FOUND})")
|
2020-11-21 06:16:49 -05:00
|
|
|
endif()
|
2020-11-10 05:06:39 -05:00
|
|
|
|
2022-06-25 05:56:45 -04:00
|
|
|
if (ENABLE_CHANNELRX_NOISEFIGURE AND Boost_FOUND AND Boost_VERSION_STRING VERSION_GREATER_EQUAL "1.70.0")
|
2021-07-01 02:55:30 -04:00
|
|
|
add_subdirectory(noisefigure)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building noisefigure (ENABLE_CHANNELRX_NOISEFIGURE=${ENABLE_CHANNELRX_NOISEFIGURE} Boost_FOUND=${Boost_FOUND} Boost_VERSION_STRING=${Boost_VERSION_STRING})")
|
2021-07-01 02:55:30 -04:00
|
|
|
endif()
|
|
|
|
|
2023-01-14 19:22:57 -05:00
|
|
|
if (ENABLE_CHANNELRX_DEMODFT8 AND FT8_SUPPORT)
|
|
|
|
add_subdirectory(demodft8)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodft8 (ENABLE_CHANNELRX_DEMODFT8=${ENABLE_CHANNELRX_DEMODFT8} FT8_SUPPORT=${FT8_SUPPORT})")
|
2023-01-14 19:22:57 -05:00
|
|
|
endif()
|
|
|
|
|
2023-03-03 11:37:38 -05:00
|
|
|
if (ENABLE_CHANNELRX_DEMODNAVTEX)
|
|
|
|
add_subdirectory(demodnavtex)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodnavtex (ENABLE_CHANNELRX_DEMODNAVTEX=${ENABLE_CHANNELRX_DEMODNAVTEX})")
|
2023-03-03 11:37:38 -05:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODRTTY)
|
|
|
|
add_subdirectory(demodrtty)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodrtty (ENABLE_CHANNELRX_DEMODRTTY=${ENABLE_CHANNELRX_DEMODRTTY})")
|
2023-03-03 11:37:38 -05:00
|
|
|
endif()
|
|
|
|
|
2023-03-21 06:54:42 -04:00
|
|
|
if (ENABLE_CHANNELRX_DEMODILS)
|
|
|
|
add_subdirectory(demodils)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodils (ENABLE_CHANNELRX_DEMODILS=${ENABLE_CHANNELRX_DEMODILS})")
|
2023-03-21 06:54:42 -04:00
|
|
|
endif()
|
|
|
|
|
2023-05-15 11:40:43 -04:00
|
|
|
if (ENABLE_CHANNELRX_DEMODDSC)
|
|
|
|
add_subdirectory(demoddsc)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demoddsc (ENABLE_CHANNELRX_DEMODDSC=${ENABLE_CHANNELRX_DEMODDSC})")
|
2023-05-15 11:40:43 -04:00
|
|
|
endif()
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
if(NOT SERVER_MODE)
|
2023-07-29 07:33:38 -04:00
|
|
|
if (ENABLE_CHANNELRX_HEATMAP)
|
|
|
|
add_subdirectory(heatmap)
|
|
|
|
else()
|
|
|
|
message(STATUS "Not building heatmap (ENABLE_CHANNELRX_HEATMAP=${ENABLE_CHANNELRX_HEATMAP})")
|
|
|
|
endif()
|
2023-02-16 10:53:54 -05:00
|
|
|
|
2022-06-25 05:56:45 -04:00
|
|
|
if (ENABLE_CHANNELRX_CHANALYZER)
|
|
|
|
add_subdirectory(chanalyzer)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building chanalyzer (ENABLE_CHANNELRX_CHANALYZER=${ENABLE_CHANNELRX_CHANALYZER})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODATV)
|
|
|
|
add_subdirectory(demodatv)
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demodatv (ENABLE_CHANNELRX_DEMODATV=${ENABLE_CHANNELRX_DEMODATV})")
|
2022-06-25 05:56:45 -04:00
|
|
|
endif()
|
2019-05-01 05:54:58 -04:00
|
|
|
|
2019-05-09 08:18:27 -04:00
|
|
|
# need ffmpeg 3.1 that correstonds to
|
2019-05-01 05:54:58 -04:00
|
|
|
# libavutil 55.27.100
|
|
|
|
# libavcodec 57.48.101
|
|
|
|
# libavformat 57.40.101
|
2020-07-18 21:55:27 -04:00
|
|
|
find_package(FFmpeg COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE)
|
2022-06-25 05:56:45 -04:00
|
|
|
|
|
|
|
if (ENABLE_CHANNELRX_DEMODDATV AND FFMPEG_FOUND)
|
2019-05-24 02:32:40 -04:00
|
|
|
if(WIN32)
|
|
|
|
add_subdirectory(demoddatv)
|
|
|
|
else()
|
2023-01-02 10:32:25 -05:00
|
|
|
if(((AVUTIL_VERSION VERSION_GREATER "55.27.99") AND (AVCODEC_VERSION VERSION_GREATER "57.48.101")) OR FFMPEG_EXTERNAL OR FFMEG_SKIP_CHECK)
|
2019-05-09 08:18:27 -04:00
|
|
|
message(STATUS "Include demoddatv")
|
|
|
|
add_subdirectory(demoddatv)
|
|
|
|
else()
|
2020-07-18 21:55:27 -04:00
|
|
|
message(STATUS "FFmpeg too old to compile demoddatv; needs at least avutil: 55.27.100, avcodec/avformat: 57.48.101")
|
2019-05-09 08:18:27 -04:00
|
|
|
endif()
|
2019-05-24 02:32:40 -04:00
|
|
|
endif()
|
2023-07-29 07:33:38 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Not building demoddatv (ENABLE_CHANNELRX_DEMODDATV=${ENABLE_CHANNELRX_DEMODDATV} FFMPEG_FOUND=${FFMPEG_FOUND})")
|
2019-05-01 05:54:58 -04:00
|
|
|
endif()
|
|
|
|
endif()
|