From 047a2b1a225434baff4994968d30efbe45d364d0 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 9 Mar 2024 15:36:40 +0100 Subject: [PATCH] Clean CMakeLists --- src/CMakeLists.txt | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fb5977b..232695d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,20 +1,10 @@ cmake_minimum_required(VERSION 3.16) project(plasma-containmentactions-customdesktopmenu) -set(PROJECT_VERSION "6.0.80") -string(REPLACE "." ";" VERSION_LIST ${PROJECT_VERSION}) -list(GET VERSION_LIST 0 PROJECT_VERSION_MAJOR) -list(GET VERSION_LIST 1 PROJECT_VERSION_MINOR) -list(GET VERSION_LIST 2 PROJECT_VERSION_PATCH) -set(PROJECT_DEP_VERSION "6.0.0") set(QT_MIN_VERSION "6.6.0") set(KF6_MIN_VERSION "6.0.0") set(KDE_COMPILERSETTINGS_LEVEL "5.82") -set(INSTALL_SDDM_THEME TRUE) -option(PLASMA_X11_DEFAULT_SESSION "Use X11 session by default for Plasma" OFF) -option(INSTALL_SDDM_WAYLAND_SESSION OFF) -option(WITH_X11 "Build with X11 support. Building without is experimental" ON) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -26,13 +16,8 @@ include(KDEInstallDirs) include(KDECMakeSettings) include(KDECompilerSettings NO_POLICY_SCOPE) -find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Svg Widgets Quick QuickWidgets Concurrent Network Core5Compat DBus ShaderTools) -find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS - Auth Parts Runner Notifications NotifyConfig NewStuff Wallet IdleTime - Svg Declarative I18n KCMUtils TextWidgets Crash GlobalAccel DBusAddons - CoreAddons KIO Prison Package - GuiAddons Archive ItemModels IconThemes UnitConversion TextEditor StatusNotifierItem - OPTIONAL_COMPONENTS DocTools) +find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED NO_MODULE) +find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS I18n KIO) find_package(Plasma ${PROJECT_DEP_VERSION} REQUIRED) include_directories("${CMAKE_CURRENT_BINARY_DIR}")