Remove unneeded stuff from CMake

This should only be at the project toplevel, not in some subfolder
This commit is contained in:
Nicolas Fella 2022-10-02 17:56:55 +02:00
parent 22c8c14bf5
commit b4dd9066da
2 changed files with 2 additions and 26 deletions

View file

@ -63,6 +63,8 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Wayland Wayland
ModemManagerQt ModemManagerQt
NetworkManagerQt NetworkManagerQt
KCMUtils
Declarative
) )
find_package(LibKWorkspace CONFIG REQUIRED) find_package(LibKWorkspace CONFIG REQUIRED)

View file

@ -1,32 +1,6 @@
# SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org> # SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
# SPDX-License-Identifier: GPL-2.0-or-later # 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") kcoreaddons_add_plugin(kcm_mobileshell SOURCES kcm.cpp INSTALL_NAMESPACE "plasma/kcms/systemsettings")
target_link_libraries(kcm_mobileshell target_link_libraries(kcm_mobileshell