Skip to content

Commit

Permalink
[gui] Add KGuiAddons as an optional dependency
Browse files Browse the repository at this point in the history
This will be needed to replace QClipboard in some places.

Signed-off-by: Kevin Ottens <ervin@kde.org>
  • Loading branch information
er-vin committed Mar 7, 2024
1 parent 0e301e7 commit 312da84
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/gui/CMakeLists.txt
@@ -1,6 +1,7 @@
project(gui)
find_package(Qt5 REQUIRED COMPONENTS Widgets Svg Qml Quick QuickControls2 QuickWidgets Xml Network)
find_package(KF5Archive REQUIRED)
find_package(KF5GuiAddons)

if(QUICK_COMPILER)
find_package(Qt5QuickCompiler)
Expand Down Expand Up @@ -563,6 +564,14 @@ target_link_libraries(nextcloudCore
KF5::Archive
)

if(KF5GuiAddons_FOUND)
target_link_libraries(nextcloudCore
PUBLIC
KF5::GuiAddons
)
add_definitions(-DHAVE_KGUIADDONS)
endif()

add_subdirectory(socketapi)

# skip unity inclusion for files which cause problems with a CMake unity build
Expand Down

0 comments on commit 312da84

Please sign in to comment.