1
0

Clean CMakeLists

This commit is contained in:
MatMoul 2024-03-09 15:36:40 +01:00
parent 9a31d24485
commit 047a2b1a22

View File

@ -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}")