-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
85 lines (73 loc) · 2.28 KB
/
Copy pathCMakeLists.txt
File metadata and controls
85 lines (73 loc) · 2.28 KB
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
83
84
85
# SPDX-FileCopyrightText: 2013-2016 Andreas Cord-Landwehr <cordlandwehr@kde.org>
# SPDX-License-Identifier: BSD-2-Clause
cmake_minimum_required(VERSION 3.16.0)
set(QT_MIN_VERSION "6.8.0")
set(KF_MIN_VERSION "6.0.0")
set(KDE_COMPILERSETTINGS_LEVEL "5.84.0")
# generate QML LS integration
set(QT_QML_GENERATE_QMLLS_INI ON)
# KDE Application Version, managed by release script
set (RELEASE_SERVICE_VERSION_MAJOR "26")
set (RELEASE_SERVICE_VERSION_MINOR "11")
set (RELEASE_SERVICE_VERSION_MICRO "70")
set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
set (ARTIKULATE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
project(artikulate VERSION ${ARTIKULATE_VERSION})
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
find_package(KF6DocTools)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} )
find_package(LibXml2 REQUIRED)
include(KDEInstallDirs)
include(KDEClangFormat)
include(ECMAddTests)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMInstallIcons)
include(ECMOptionalAddSubdirectory)
include(ECMSetupVersion)
include(ECMEnableSanitizers)
include(FeatureSummary)
include(GenerateExportHeader)
include(ECMDeprecationSettings)
find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS
Sql
Multimedia
Qml
Quick
Test
Xml
)
qt_policy(SET QTP0001 NEW)
qt_policy(SET QTP0004 NEW)
qt_policy(SET QTP0005 NEW)
find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS
Archive
Config
Crash
I18n
ItemModels
NewStuff
Kirigami
)
ecm_set_disabled_deprecation_versions(QT 6.5.0
KF 6.0.0
)
add_definitions(
-DQT_NO_URL_CAST_FROM_STRING
-DQT_NO_KEYWORDS
-DQT_NO_FOREACH
)
# subdirectories to build
add_subdirectory(doc)
add_subdirectory(src)
add_subdirectory(icons)
add_subdirectory(liblearnerprofile)
add_subdirectory(autotests)
# files to install in the artikulate project root directory
ki18n_install(po)
if (KF6DocTools_FOUND)
kdoctools_install(po)
endif()
install(PROGRAMS org.kde.artikulate.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.artikulate.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)