~neon/kdesdk-thumbnailers/master

63 by Friedrich W. H. Kossebau
Bump min CMake/Qt/KF versions to 3.16/5.15/5.83
1
cmake_minimum_required(VERSION 3.16)
58 by Friedrich W. H. Kossebau
Remove explicite usage of ECM_KDE_MODULE_DIR, part of ECM_MODULE_PATH
2
64 by Friedrich W. H. Kossebau
Use RELEASE_SERVICE_VERSION_* variables
3
# Release service version, managed by release script
143 by Albert Astals Cid
GIT_SILENT Upgrade release service version to 24.01.75.
4
set(RELEASE_SERVICE_VERSION_MAJOR "24")
183 by Albert Astals Cid
GIT_SILENT Upgrade release service version to 24.07.70.
5
set(RELEASE_SERVICE_VERSION_MINOR "07")
160 by Albert Astals Cid
GIT_SILENT Upgrade release service version to 24.04.70.
6
set(RELEASE_SERVICE_VERSION_MICRO "70")
64 by Friedrich W. H. Kossebau
Use RELEASE_SERVICE_VERSION_* variables
7
8
set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
9
10
project(kdesdk-thumbnailers VERSION ${RELEASE_SERVICE_VERSION})
63 by Friedrich W. H. Kossebau
Bump min CMake/Qt/KF versions to 3.16/5.15/5.83
11
120 by Friedrich W. H. Kossebau
Use ECMDeprecationSettings
12
set(QT_MIN_VERSION "5.15.2")
140 by Nicolas Fella
Make it build against KF6
13
set(KF_MIN_VERSION "5.100.0")
63 by Friedrich W. H. Kossebau
Bump min CMake/Qt/KF versions to 3.16/5.15/5.83
14
15
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
58 by Friedrich W. H. Kossebau
Remove explicite usage of ECM_KDE_MODULE_DIR, part of ECM_MODULE_PATH
16
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
40 by Hrvoje Senjan
Port to Frameworks
17
18
include(KDEInstallDirs)
19
include(KDECMakeSettings)
62 by Friedrich W. H. Kossebau
Include KDE CMake settings first, do with NO_POLICY_SCOPE
20
include(KDECompilerSettings NO_POLICY_SCOPE)
21
120 by Friedrich W. H. Kossebau
Use ECMDeprecationSettings
22
include(ECMDeprecationSettings)
62 by Friedrich W. H. Kossebau
Include KDE CMake settings first, do with NO_POLICY_SCOPE
23
include(ECMOptionalAddSubdirectory)
40 by Hrvoje Senjan
Port to Frameworks
24
include(FeatureSummary)
25
96 by Nicolas Fella
Adapt build system to Qt6
26
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Widgets)
140 by Nicolas Fella
Make it build against KF6
27
find_package(KF${QT_MAJOR_VERSION} ${KF_MIN_VERSION} REQUIRED COMPONENTS Config I18n KIO)
40 by Hrvoje Senjan
Port to Frameworks
28
29
find_package(GettextPO)
30
set_package_properties("gettext-po"    PROPERTIES
31
                       DESCRIPTION "A library for processing PO files"
32
                       URL         "www.gnu.org/software/gettext"
33
                       TYPE        OPTIONAL
34
                       PURPOSE     "Required to build the PO thumbnailer"
35
)
61 by Friedrich W. H. Kossebau
Only disable visibility of deprecated API we know already
36
120 by Friedrich W. H. Kossebau
Use ECMDeprecationSettings
37
ecm_set_disabled_deprecation_versions(
38
    QT 5.15.2
39
    KF 5.91
61 by Friedrich W. H. Kossebau
Only disable visibility of deprecated API we know already
40
)
2 by Hui Ni
find gettext po library
41
42
if(GETTEXTPO_FOUND)
40 by Hrvoje Senjan
Port to Frameworks
43
ecm_optional_add_subdirectory(po_thumbnailer)
59 by Friedrich W. H. Kossebau
Cleanup cmake code
44
endif()
2 by Hui Ni
find gettext po library
45
80 by Albert Astals Cid
Add ki18n_install
46
ki18n_install(po)
47
40 by Hrvoje Senjan
Port to Frameworks
48
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)