-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
features.cmake
53 lines (45 loc) · 1.31 KB
/
features.cmake
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
# SPDX-FileCopyrightText: 2024 Pier Luigi Fiorini <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause
## Enable feature summary at the end of the configure run:
include(FeatureSummary)
## Set minimum versions required:
set(QT_MIN_VERSION "6.7.0")
## Find Qt:
find_package(Qt6 "${QT_MIN_VERSION}"
REQUIRED
COMPONENTS
Core
Core5Compat
DBus
Concurrent
Gui
Qml
QmlIntegration
Quick
QuickControls2
LinguistTools
)
## Silence old policy warnings:
qt6_policy(SET QTP0004 OLD)
## Find AppStreamQt:
find_package(AppStreamQt REQUIRED)
## Find Flatpak:
option(FEATURE_appcenter_flatpak "Flatpak support" ON)
if(FEATURE_appcenter_flatpak)
find_package(Flatpak QUIET)
set_package_properties(Flatpak PROPERTIES
TYPE RECOMMENDED
PURPOSE "Flatpak support"
)
if(NOT TARGET PkgConfig::Flatpak)
message(WARNING "You need Flatpak for AppCenter::Flatpak")
set(FEATURE_appcenter_flatpak OFF)
endif()
endif()
add_feature_info("AppCenter::Flatpak" FEATURE_appcenter_flatpak "Build support for Flatpak")
set(FEATURE_appcenter_flatpak "$<IF:${FEATURE_appcenter_flatpak},1,0>")
#### Features
## Features summary:
if(NOT LIRI_SUPERBUILD)
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)
endif()