forked from moodyhunter/applet-window-buttons6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (29 loc) · 1.43 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
37
38
# SPDX-FileCopyrightText: 2018 Michail Vourlakos <[email protected]>
# SPDX-License-Identifier: GPL-2.0-or-later
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 DBus Gui Qml Quick)
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS CoreAddons Config 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)