-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
52 lines (43 loc) · 1.14 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.10.0)
project("CalamaresBranding"
VERSION "0.9.0"
DESCRIPTION "Modules and configuration for the Calamares installer"
LANGUAGES CXX C
)
## Only build on the appropriate platforms.
if(NOT (LINUX OR NOT CMAKE_SYSTEM_NAME MATCHES "Android"))
message(NOTICE "Skipping the build as the condition \"LINUX OR NOT Android\" is not met.")
return()
endif()
## ECM:
find_package(ECM 5.245.0 REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
## Installation directories:
include(KDEInstallDirs)
## Compiler settings:
set(KDE_SKIP_NULLPTR_WARNINGS_SETTINGS TRUE)
include(KDECompilerSettings NO_POLICY_SCOPE)
## CMake settings:
include(KDECMakeSettings)
## Find Qt:
find_package(Qt6 "6.7"
REQUIRED
COMPONENTS
Core
Gui
Qml
Quick
QuickControls2
LinguistTools
)
# Set policies for Qt:
if(QT_KNOWN_POLICY_QTP0001)
qt_policy(SET QTP0001 NEW)
endif()
## Add subdirectories:
add_subdirectory(branding)
add_subdirectory(data)
add_subdirectory(modules)
add_subdirectory(settings)
add_subdirectory(src/ostree-install)
add_subdirectory(src/live-welcome)