From 6838958c6b9f5069e0b593da2a951f7359fd4356 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 12 Jan 2023 14:15:22 +0100 Subject: [PATCH] FT8 support: corrected FT8 enabling in main CMakeFile and in sdrbench --- CMakeLists.txt | 6 +++++- sdrbench/test_ft8.cpp | 16 ++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ebf9da713..8e9a3bff4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -780,7 +780,11 @@ add_subdirectory(devices) add_subdirectory(sdrbench) add_subdirectory(modemm17) -add_subdirectory(ft8) + +if (FFTW3F_FOUND) + add_subdirectory(ft8) + add_definitions(-DHAS_FT8) +endif() if (BUILD_GUI) add_subdirectory(sdrgui) diff --git a/sdrbench/test_ft8.cpp b/sdrbench/test_ft8.cpp index f326c1231..58128023e 100644 --- a/sdrbench/test_ft8.cpp +++ b/sdrbench/test_ft8.cpp @@ -21,20 +21,20 @@ #include "mainbench.h" #include "dsp/wavfilerecord.h" -#ifdef LINUX -#include "ft8/ft8.h" -#include "ft8/unpack.h" - #include -#endif -#ifndef LINUX -void MainBench::testFT8() +#ifndef HAS_FT8 +void MainBench::testFT8(const QString& wavFile, const QString& argsStr) { - qDebug("Implemented in Linux only"); + (void) wavFile; + (void) argStr; + qWarning("MainBench::testFT8: this version has no FT8 support"); } #else +#include "ft8/ft8.h" +#include "ft8/unpack.h" + class TestFT8Callback : public FT8::CallbackInterface { public: