-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
60 lines (46 loc) · 1.62 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
cmake_minimum_required(VERSION 3.16)
project(KDisplay VERSION 6.2.80)
add_definitions("-DKDISPLAY_VERSION=\"${PROJECT_VERSION}\"")
set(QT_MIN_VERSION "6.6.0")
set(KF6_MIN_VERSION "6.0.0")
set(KDE_COMPILERSETTINGS_LEVEL "5.84")
find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMConfiguredInstall)
include(ECMGenerateDBusServiceFile)
include(ECMInstallIcons)
include(ECMMarkAsTest)
include(ECMQtDeclareLoggingCategory)
include(FeatureSummary)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test Sensors)
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
Config
DBusAddons
GlobalAccel
I18n
KCMUtils
WindowSystem
XmlGui
)
find_package(Plasma ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} REQUIRED)
find_package(PlasmaQuick ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} REQUIRED)
find_package(LayerShellQt)
set_package_properties(LayerShellQt PROPERTIES
DESCRIPTION "Layer shell Qt bindings"
URL "https://invent.kde.org/plasma/layer-shell-qt"
PURPOSE "Required for the screen selection osd"
TYPE REQUIRED
)
set(MIN_DISMAN_VERSION "0.600.0")
find_package(disman ${MIN_DISMAN_VERSION} REQUIRED)
add_subdirectory(kcm)
add_subdirectory(plasma-integration)
add_subdirectory(tests)
install(FILES kdisplay.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
include(Packing)