2014-05-18 11:52:39 -04:00
|
|
|
project(demod)
|
|
|
|
|
2016-03-09 00:39:19 -05:00
|
|
|
add_subdirectory(demodam)
|
2018-01-05 06:07:15 -05:00
|
|
|
add_subdirectory(demodbfm)
|
2016-03-09 20:29:42 -05:00
|
|
|
add_subdirectory(demodnfm)
|
2019-11-23 01:39:57 -05:00
|
|
|
add_subdirectory(demodnfmtest)
|
2016-03-09 20:29:42 -05:00
|
|
|
add_subdirectory(demodssb)
|
2018-09-11 18:40:22 -04:00
|
|
|
add_subdirectory(udpsink)
|
2016-03-09 20:29:42 -05:00
|
|
|
add_subdirectory(demodwfm)
|
2019-05-01 22:02:40 -04:00
|
|
|
add_subdirectory(localsink)
|
2019-05-03 19:55:58 -04:00
|
|
|
add_subdirectory(freqtracker)
|
2014-11-05 07:34:33 -05:00
|
|
|
|
2016-04-20 20:13:57 -04:00
|
|
|
if(LIBDSDCC_FOUND AND LIBMBE_FOUND)
|
2016-04-07 07:05:53 -04:00
|
|
|
add_subdirectory(demoddsd)
|
2016-04-20 20:13:57 -04:00
|
|
|
endif(LIBDSDCC_FOUND AND LIBMBE_FOUND)
|
2016-10-25 18:57:46 -04:00
|
|
|
|
2018-09-04 19:32:29 -04:00
|
|
|
if(CM256CC_FOUND)
|
2019-01-22 17:39:12 -05:00
|
|
|
add_subdirectory(remotesink)
|
2018-09-04 19:32:29 -04:00
|
|
|
endif(CM256CC_FOUND)
|
|
|
|
|
2019-02-24 18:13:57 -05:00
|
|
|
if (CODEC2_FOUND)
|
|
|
|
add_subdirectory(demodfreedv)
|
|
|
|
endif(CODEC2_FOUND)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
if(NOT SERVER_MODE)
|
|
|
|
add_subdirectory(demodlora)
|
|
|
|
add_subdirectory(chanalyzer)
|
|
|
|
add_subdirectory(demodatv)
|
|
|
|
|
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
|
2019-05-09 08:18:27 -04:00
|
|
|
# TODO use libavcodec/version.h
|
|
|
|
find_package(FFmpeg)
|
2019-05-01 05:54:58 -04:00
|
|
|
if (FFMPEG_FOUND)
|
2019-05-24 02:32:40 -04:00
|
|
|
if(WIN32)
|
|
|
|
add_subdirectory(demoddatv)
|
|
|
|
else()
|
2019-05-09 08:18:27 -04:00
|
|
|
# You can only get FFmpeg version from the command line
|
|
|
|
EXECUTE_PROCESS(COMMAND ffmpeg -version COMMAND grep ffmpeg COMMAND cut -d\ -f3 COMMAND tr -d '\n' OUTPUT_VARIABLE FFMPEG_VERSION)
|
|
|
|
message(STATUS "FFmpeg version ${FFMPEG_VERSION} found")
|
|
|
|
if(FFMPEG_VERSION VERSION_GREATER "3.1")
|
|
|
|
message(STATUS "Include demoddatv")
|
|
|
|
add_subdirectory(demoddatv)
|
|
|
|
else()
|
|
|
|
message(STATUS "FFmpeg too old to compile demoddatv; needs at least ffmpeg 3.1")
|
|
|
|
endif()
|
2019-05-24 02:32:40 -04:00
|
|
|
endif()
|
2019-05-01 05:54:58 -04:00
|
|
|
endif()
|
|
|
|
endif()
|