fix build failed

Signed-off-by: Zhang Sheng <zhangsheng@uniontech.com>
This commit is contained in:
Zhang Sheng 2024-06-12 15:42:46 +08:00
parent abf6e1ccd5
commit dcc4718c98
2 changed files with 5 additions and 1 deletions

View file

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

View file

@ -27,6 +27,7 @@
#endif
#include <QSslSocket>
#include <QSvgRenderer>
#include <QPainter>
#include "nextcloudtheme.h"