-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
features.cmake
30 lines (25 loc) · 1.01 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
# SPDX-FileCopyrightText: 2023 Pier Luigi Fiorini <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause
## Find Qt:
find_package(Qt6 "6.6.0"
REQUIRED
COMPONENTS
Core
Gui
Widgets
QuickControls2
WaylandClient
)
#### Features
# Decorations: material
option(FEATURE_qtintegration_material_decoration "Material decoration" ON)
add_feature_info("QtIntegration::MaterialDecoration" FEATURE_qtintegration_material_decoration "Build Material decoration")
set(LIRI_FEATURE_qtintegration_material_decoration "$<IF:${FEATURE_qtintegration_material_decoration},1,0>")
# Qt platform theme
option(FEATURE_qtintegration_platformtheme "Qt platform theme" ON)
add_feature_info("QtIntegration::PlatformTheme" FEATURE_qtintegration_platformtheme "Build Qt platform theme")
set(LIRI_FEATURE_qtintegration_platformtheme "$<IF:${FEATURE_qtintegration_platformtheme},1,0>")
## Features summary:
if(NOT LIRI_SUPERBUILD)
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)
endif()