-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (26 loc) · 917 Bytes
/
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
cmake_minimum_required(VERSION 3.16)
project(arstotzka)
set(QT_MIN_VERSION "6.6.0")
set(KF_MIN_VERSION "6.6.0")
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(KDEInstallDirs6)
include(KDECMakeSettings)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core)
find_package(KF6 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Config ConfigWidgets)
find_package(KDecoration2 REQUIRED)
find_package(KF6CoreAddons REQUIRED)
add_library(arstotzka MODULE)
target_sources(arstotzka PRIVATE decoration.cpp decoration.hpp)
target_link_libraries(
arstotzka
PUBLIC Qt::Core
PRIVATE KDecoration2::KDecoration KF6::ConfigCore KF6::ConfigWidgets KF6::CoreAddons
)
install(
TARGETS arstotzka
DESTINATION ${KDE_INSTALL_PLUGINDIR}/org.kde.kdecoration2
)