From fcf22da4a698ddf8f96fe13793a5e40dc833f6eb Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 2 Sep 2021 21:13:41 +0200 Subject: [PATCH] Fixed compilation in server mode for Satellite Tracker plugin --- CMakeLists.txt | 4 ++-- plugins/feature/CMakeLists.txt | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cc389c2d..849e68504 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -321,6 +321,8 @@ find_package(Qt5 WebSockets Multimedia MultimediaWidgets + Positioning + Charts SerialPort) # for the server we don't need OpenGL/Qt Quick components @@ -331,9 +333,7 @@ if (BUILD_GUI) OpenGL Quick QuickWidgets - Positioning Location - Charts TextToSpeech) endif() diff --git a/plugins/feature/CMakeLists.txt b/plugins/feature/CMakeLists.txt index b809b08e4..75e9b4e59 100644 --- a/plugins/feature/CMakeLists.txt +++ b/plugins/feature/CMakeLists.txt @@ -19,7 +19,15 @@ add_subdirectory(demodanalyzer) add_subdirectory(pertester) add_subdirectory(rigctlserver) add_subdirectory(simpleptt) -if (SGP4_FOUND) - add_subdirectory(satellitetracker) + +if (NOT SERVER_MODE) + if (SGP4_FOUND AND Qt5Positioning_FOUND AND Qt5Charts_FOUND AND Qt5TextToSpeech_FOUND) + add_subdirectory(satellitetracker) + endif() +else() + if (SGP4_FOUND AND Qt5Positioning_FOUND AND Qt5Charts_FOUND) + add_subdirectory(satellitetracker) + endif() endif() + add_subdirectory(startracker)