-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
CMakeLists.txt
82 lines (65 loc) · 2.08 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
# KDE Application Version, managed by release script
set (RELEASE_SERVICE_VERSION_MAJOR "25")
set (RELEASE_SERVICE_VERSION_MINOR "03")
set (RELEASE_SERVICE_VERSION_MICRO "70")
set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
project(yakuake VERSION ${RELEASE_SERVICE_VERSION})
# KF6 only
set(QT_MIN_VERSION "6.5.0")
set(KF_MIN_VERSION "6.3.0")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMInstallIcons)
include(ECMAddAppIcon)
include(FeatureSummary)
include(KDEClangFormat)
include(KDEGitCommitHooks)
include(ECMDeprecationSettings)
include(ECMGenerateDBusServiceFile)
ecm_set_disabled_deprecation_versions(QT 6.8.0
KF 6.7
)
### Security concerns about sendText and runCommand dbus methods being public
option(REMOVE_SENDTEXT_RUNCOMMAND_DBUS_METHODS "yakuake: remove runCommand dbus methods" OFF)
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED Core Widgets Svg)
find_package(KF6 ${KF_MIN_VERSION} REQUIRED
Archive
Config
CoreAddons
Crash
DBusAddons
GlobalAccel
I18n
IconThemes
KIO
NewStuff
Notifications
NotifyConfig
Parts
WidgetsAddons
WindowSystem
StatusNotifierItem
)
option(WITH_X11 "Build with X11 integration" ON)
if(WITH_X11)
set(HAVE_X11 TRUE)
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED Gui)
else()
set(HAVE_X11 FALSE)
endif()
find_package(KWayland CONFIG)
set(HAVE_KWAYLAND ${KWayland_FOUND})
add_subdirectory(app)
add_subdirectory(data)
ki18n_install(po)
# add clang-format target for all our real source files
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)