-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
features.cmake
56 lines (48 loc) · 1.51 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
56
# SPDX-FileCopyrightText: 2021 Pier Luigi Fiorini <[email protected]>
#
# SPDX-License-Identifier: BSD-3-Clause
## Find prctl.h:
include(CheckIncludeFile)
check_include_file("sys/prctl.h" HAVE_SYS_PRCTL_H)
## Find Qt:
find_package(Qt6 "6.6.0"
REQUIRED
COMPONENTS
Core
Concurrent
DBus
Xml
Sql
Gui
WaylandClient
Widgets
Svg
Qml
Quick
QuickControls2
LinguistTools
)
if(NOT COMMAND aurora_generate_wayland_protocol_client_sources)
## Find Aurora Scanner:
find_package(AuroraScanner REQUIRED)
endif()
#### Features
# liri-development-build
option(FEATURE_liri_development_build "Development build" OFF)
add_feature_info("Liri::DevelopmentBuild" FEATURE_liri_development_build "Build Liri Shell for development")
set(LIRI_FEATURE_liri_development_build "$<IF:${FEATURE_liri_development_build},1,0>")
# liri-enable-systemd
option(FEATURE_shell_enable_systemd "Enable systemd support" ON)
if(FEATURE_shell_enable_systemd)
find_package(Libsystemd QUIET)
if(NOT TARGET PkgConfig::Libsystemd)
message(WARNING "You need libsystemd for Shell::Systemd")
set(FEATURE_enable_systemd OFF)
endif()
endif()
add_feature_info("Shell::Systemd" FEATURE_shell_enable_systemd "Enable systemd support")
set(LIRI_FEATURE_shell_enable_systemd "$<IF:${LIRI_FEATURE_shell_enable_systemd},1,0>")
## Features summary:
if(NOT LIRI_SUPERBUILD)
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)
endif()