-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
84 lines (68 loc) · 2.37 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
cmake_minimum_required(VERSION 3.19)
project("Shell"
VERSION "0.9.0"
DESCRIPTION "QtQuick Wayland compositor and shell"
LANGUAGES CXX C
)
## Only build on the appropriate platforms.
if(NOT (UNIX OR NOT CMAKE_SYSTEM_NAME MATCHES "Android"))
message(NOTICE "Skipping the build as the condition \"UNIX 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)
## Enable keywords such as emit:
# TODO: Replace keywords such as emit with Q_EMIT
remove_definitions(-DQT_NO_KEYWORDS)
## CMake settings:
include(KDECMakeSettings)
## QML module:
include(ECMQmlModule)
## ECM:
include(ECMQtDeclareLoggingCategory)
## Disable use of C++ API deprecated in Qt 5.15
add_compile_definitions(QT_DISABLE_DEPRECATED_UP_TO=0x050F00)
## QML import path:
if(NOT QML_IMPORT_PATH)
set(QML_IMPORT_PATH ${CMAKE_SOURCE_DIR}/bin CACHE STRING "" FORCE)
endif()
## Shared macros and functions:
if(NOT LIRI_LOCAL_ECM)
find_package(LiriCMakeShared "2.0.99" REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH "${LCS_MODULE_PATH}")
endif()
## Add some paths to check for CMake modules:
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_CURRENT_SOURCE_DIR}/cmake/3rdparty")
## Liri specific setup common for all modules:
include(LiriSetup)
## Features:
include(features.cmake)
## Add subdirectories:
add_subdirectory(data/settings)
if(FEATURE_shell_enable_systemd)
add_subdirectory(data/systemd)
endif()
add_subdirectory(src/compositor)
add_subdirectory(src/helper)
add_subdirectory(src/imports/compositor)
add_subdirectory(src/imports/loginmanager)
add_subdirectory(src/imports/mpris2)
add_subdirectory(src/imports/notifications)
add_subdirectory(src/imports/policykit)
add_subdirectory(src/imports/shell)
add_subdirectory(src/imports/shell-private)
add_subdirectory(src/imports/storage)
add_subdirectory(src/imports/taskmanager)
add_subdirectory(src/imports/utils)
add_subdirectory(src/lockscreen)
#add_subdirectory(src/plugins/statusarea/datetime)
#add_subdirectory(src/plugins/statusarea/user)
##add_subdirectory(src/plugins/statusarea/notifications)
#add_subdirectory(src/plugins/statusarea/storage)
add_subdirectory(src/sddm)