From b4dd9066da2461ffb8c46016017bc8c671ce62f5 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 2 Oct 2022 17:56:55 +0200 Subject: [PATCH] Remove unneeded stuff from CMake This should only be at the project toplevel, not in some subfolder --- CMakeLists.txt | 2 ++ kcms/mobileshell/CMakeLists.txt | 26 -------------------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 188cfd9f..75f5750c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,8 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Wayland ModemManagerQt NetworkManagerQt + KCMUtils + Declarative ) find_package(LibKWorkspace CONFIG REQUIRED) diff --git a/kcms/mobileshell/CMakeLists.txt b/kcms/mobileshell/CMakeLists.txt index ca1d248b..5c99eab0 100644 --- a/kcms/mobileshell/CMakeLists.txt +++ b/kcms/mobileshell/CMakeLists.txt @@ -1,32 +1,6 @@ # SPDX-FileCopyrightText: 2022 Devin Lin # SPDX-License-Identifier: GPL-2.0-or-later -cmake_minimum_required(VERSION 3.0) - -project(mobileshellkcm) - -set(QT_MIN_VERSION "5.15.0") -set(KF5_MIN_VERSION "5.90.0") - -find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) -set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) - -include(KDEInstallDirs) -include(KDECMakeSettings) -include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) - -find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS - Quick - Svg -) - -find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS - I18n - KCMUtils - Declarative - Config -) - kcoreaddons_add_plugin(kcm_mobileshell SOURCES kcm.cpp INSTALL_NAMESPACE "plasma/kcms/systemsettings") target_link_libraries(kcm_mobileshell