1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-25 20:22:10 -05:00

FT8 support: corrected FT8 enabling in main CMakeFile and in sdrbench

This commit is contained in:
f4exb 2023-01-12 14:15:22 +01:00
parent e3c16440d8
commit 6838958c6b
2 changed files with 13 additions and 9 deletions

View File

@ -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)

View File

@ -21,20 +21,20 @@
#include "mainbench.h"
#include "dsp/wavfilerecord.h"
#ifdef LINUX
#include "ft8/ft8.h"
#include "ft8/unpack.h"
#include <QMutex>
#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: