-
Notifications
You must be signed in to change notification settings - Fork 56
/
CMakeLists.txt
35 lines (25 loc) · 1.17 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
project(applet_windowbuttons)
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 14)
set(VERSION 0.11.1)
set(AUTHOR "Michail Vourlakos")
set(EMAIL "[email protected]")
set(QT_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.81.0")
set(KDECORATION2_MIN_VERSION "5.24.0")
set(KF5_LOCALE_PREFIX "")
find_package(ECM ${KF5_MIN_VER} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED NO_MODULE COMPONENTS Gui Qml Quick)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons Declarative Plasma PlasmaQuick)
find_package(KDecoration2 ${KDECORATION2_MIN_VERSION} REQUIRED)
include(ECMQMLModules)
include(CheckIncludeFiles)
include(KDECMakeSettings)
include(KDEInstallDirs)
set(KDECORATION2_VERSION_MINOR ${KDecoration2_VERSION_MINOR})
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)