From 228e15e20a9cbdd9fb0d3e34e2d5141355fc8e7b Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 17 Nov 2017 22:06:55 +0100 Subject: [PATCH] Search all KF5 components as such instead as separate frameworks Reviewers: #frameworks, davidedmundson Reviewed By: davidedmundson Tags: #frameworks Differential Revision: https://phabricator.kde.org/D8873 --- CMakeLists.txt | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35afb09f9..3ab88a3de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,25 +52,30 @@ set (REQUIRED_QT_VERSION 5.7.0) find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Quick Gui Sql Qml Svg) -find_package(KF5Activities ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Archive ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Config ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5ConfigWidgets ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5CoreAddons ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5DBusAddons ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Declarative ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5GlobalAccel ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5GuiAddons ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5I18n ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5IconThemes ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5KIO ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Service ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5WindowSystem ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5XmlGui ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Notifications ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5Package ${KF5_DEP_VERSION} REQUIRED) +find_package(KF5 ${KF5_DEP_VERSION} REQUIRED + COMPONENTS + Activities + Archive + Config + ConfigWidgets + CoreAddons + DBusAddons + Declarative + GlobalAccel + GuiAddons + I18n + IconThemes + KIO + Service + WindowSystem + XmlGui + Notifications + Package + OPTIONAL_COMPONENTS + Wayland + DocTools +) -find_package(KF5Wayland ${KF5_DEP_VERSION}) set_package_properties(KF5Wayland PROPERTIES DESCRIPTION "Integration with the Wayland compositor" TYPE OPTIONAL ) @@ -78,7 +83,6 @@ if(KF5Wayland_FOUND) set(HAVE_KWAYLAND 1) endif() -find_package(KF5DocTools ${KF5_DEP_VERSION}) set_package_properties(KF5DocTools PROPERTIES DESCRIPTION "Tools to generate documentation" TYPE OPTIONAL )