-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
features.cmake
55 lines (46 loc) · 1.52 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
54
55
# SPDX-FileCopyrightText: 2023 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
# SPDX-License-Identifier: BSD-3-Clause
## Enable feature summary at the end of the configure run:
include(FeatureSummary)
if(FLUID_WITH_QML_MODULES)
## Find Qt:
find_package(Qt6 "6.7.0"
REQUIRED
COMPONENTS
Core
Gui
Svg
Qml
Quick
QuickControls2
QuickTest
)
## Qt policies:
if(QT_KNOWN_POLICY_QTP0004)
qt6_policy(SET QTP0004 NEW)
endif()
endif()
#### Features
# Documentation
option(FLUID_WITH_DOCUMENTATION "Build documentation" ON)
if(FLUID_WITH_DOCUMENTATION)
find_package(Doxygen QUIET)
if(NOT DOXYGEN_FOUND)
message(WARNING "Doxygen not found, documentation will not be built")
set(FLUID_WITH_DOCUMENTATION OFF)
endif()
endif()
add_feature_info("Fluid::Documentation" FLUID_WITH_DOCUMENTATION "Build Fluid documentation")
# Demo
option(FLUID_WITH_DEMO "Build demo application" ON)
add_feature_info("Fluid::Demo" FLUID_WITH_DEMO "Build Fluid demo application")
# QML modules
option(FLUID_WITH_QML_MODULES "Build QML modules" ON)
add_feature_info("Fluid::QMLModules" FLUID_WITH_QML_MODULES "Build Fluid QML modules")
# Install Material Design icons
option(FLUID_INSTALL_ICONS "Install Material Design icons" ON)
add_feature_info("Fluid::Icons" FLUID_INSTALL_ICONS "Install Material Design icons")
## Summary:
if(NOT LIRI_SUPERBUILD)
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)
endif()