From 67246a4a2c52343d2805b597e48a1713b5b9918c Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Sun, 17 Jun 2018 22:05:02 +0200
Subject: [PATCH] Fix build with Qt 5.11.0_beta3 (no more qt5_use_modules)

Reviewers: rthomsen, svuorela

Reviewed By: svuorela

Differential Revision: https://phabricator.kde.org/D13545
---
 src/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ca373fd..d01670a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -27,6 +27,8 @@ ki18n_wrap_ui(kcmsystemd_SRCS ../ui/kcmsystemd.ui)
 
 add_library(kcm_systemd MODULE ${kcmsystemd_SRCS})
 target_link_libraries(kcm_systemd
+                      Qt5::Widgets
+                      Qt5::DBus
                       KF5::Auth
                       KF5::ConfigWidgets
                       KF5::CoreAddons
@@ -37,5 +39,3 @@ target_link_libraries(kcm_systemd
                       ${Boost_LIBRARIES}
                       ${JOURNALD_LIBRARIES})
 install(TARGETS kcm_systemd DESTINATION ${CMAKE_INSTALL_PLUGINDIR})
-
-qt5_use_modules(kcm_systemd Widgets DBus)
-- 
2.17.1

