forked from psifidotos/applet-window-buttons
-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
36 lines (27 loc) · 1.3 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
project(applet_windowbuttons)
set(CMAKE_CXX_STANDARD 14)
set(VERSION 0.12.0)
set(AUTHOR "Michail Vourlakos")
set(EMAIL "[email protected]")
set(QT_MIN_VERSION "6.6.0")
set(KF6_MIN_VERSION "5.246.0")
set(KDECORATION2_MIN_VERSION "5.90")
find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED NO_MODULE COMPONENTS Gui Qml Quick)
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS CoreAddons Declarative Package Svg)
find_package(Plasma "5.90" REQUIRED)
find_package(KDecoration2 ${KDECORATION2_MIN_VERSION} REQUIRED)
include(ECMFindQmlModule)
include(CheckIncludeFiles)
include(KDECMakeSettings)
include(KDEInstallDirs)
set(KDECORATION2_VERSION_MAJOR ${KDecoration2_VERSION_MAJOR})
set(KDECORATION2_VERSION_MINOR ${KDecoration2_VERSION_MINOR})
message(STATUS "KDECORATION2 VERSION MAJOR : ${KDECORATION2_VERSION_MAJOR}")
message(STATUS "KDECORATION2 VERSION MINOR : ${KDECORATION2_VERSION_MINOR}")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libappletdecoration/config-decoration.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/libappletdecoration/config-decoration.h)
add_subdirectory(libappletdecoration)
plasma_install_package(package org.kde.windowbuttons)