From dcc4718c98b110998f8d00b40df86143acffb656 Mon Sep 17 00:00:00 2001 From: Zhang Sheng Date: Wed, 12 Jun 2024 15:42:46 +0800 Subject: [PATCH] fix build failed Signed-off-by: Zhang Sheng --- src/libsync/CMakeLists.txt | 5 ++++- src/libsync/theme.cpp | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libsync/CMakeLists.txt b/src/libsync/CMakeLists.txt index 299e62a088fe5..58d820a3412b1 100644 --- a/src/libsync/CMakeLists.txt +++ b/src/libsync/CMakeLists.txt @@ -195,7 +195,7 @@ IF (NOT APPLE) ) ENDIF(NOT APPLE) -find_package(Qt${QT_MAJOR_VERSION} REQUIRED COMPONENTS WebSockets Xml Sql) +find_package(Qt${QT_MAJOR_VERSION} REQUIRED COMPONENTS WebSockets Xml Sql Gui Svg Widgets) add_library(nextcloudsync SHARED ${libsync_SRCS}) add_library(Nextcloud::sync ALIAS nextcloudsync) @@ -211,6 +211,9 @@ target_link_libraries(nextcloudsync Qt::WebSockets Qt::Xml Qt::Sql + Qt::Gui + Qt::Svg + Qt::Widgets KF6::Archive Qt::Core5Compat ) diff --git a/src/libsync/theme.cpp b/src/libsync/theme.cpp index dd583603d7943..bb4bae4c4be86 100644 --- a/src/libsync/theme.cpp +++ b/src/libsync/theme.cpp @@ -27,6 +27,7 @@ #endif #include #include +#include #include "nextcloudtheme.h"