From 5ce5a2494617483e66eedf73859e89a3a486540d Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 12 Jan 2023 17:29:24 +0100 Subject: [PATCH] FT8 support: build fixes --- CMakeLists.txt | 5 ++++- sdrbench/CMakeLists.txt | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e9a3bff4..453aef0a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -260,6 +260,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") endif() configure_file("${CMAKE_SOURCE_DIR}/cmake/cpack/${CMAKE_PROJECT_NAME}.desktop.in" "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.desktop" @ONLY) + set(FFTW3F_FOUND ON CACHE INTERNAL "") elseif(APPLE) if("${CMAKE_OSX_DEPLOYMENT_TARGET}" STREQUAL "") message(STATUS "Build for macOS target: local version") @@ -777,15 +778,17 @@ add_subdirectory(logging) add_subdirectory(qrtplib) add_subdirectory(swagger) add_subdirectory(devices) -add_subdirectory(sdrbench) add_subdirectory(modemm17) if (FFTW3F_FOUND) add_subdirectory(ft8) add_definitions(-DHAS_FT8) + set(FT8_SUPPORT ON CACHE INTERNAL "") endif() +add_subdirectory(sdrbench) + if (BUILD_GUI) add_subdirectory(sdrgui) add_subdirectory(plugins plugins) diff --git a/sdrbench/CMakeLists.txt b/sdrbench/CMakeLists.txt index 0783c3d65..af39e8600 100644 --- a/sdrbench/CMakeLists.txt +++ b/sdrbench/CMakeLists.txt @@ -1,5 +1,9 @@ project (sdrbench) +if (FT8_SUPPORT) + set(sdrbench_FT8_LIB ft8) +endif() + set(sdrbench_SOURCES mainbench.cpp parserbench.cpp @@ -30,7 +34,7 @@ target_link_libraries(sdrbench Qt::Gui sdrbase logging - ft8 + ${sdrbench_FT8_LIB} ) install(TARGETS sdrbench DESTINATION ${INSTALL_LIB_DIR})