forked from fatman2021/artwork-maia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (37 loc) · 1.81 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
project(MaiaTheme)
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
set(INSTALL_SDDM_THEME TRUE)
include(WriteBasicConfigVersionFile)
include(FeatureSummary)
find_package(ECM 1.5.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
# Set version
set(THEME_VERSION_MAJOR 0)
set(THEME_VERSION_MINOR 3)
set(THEME_VERSION_PATCH 2)
set(THEME_VERSION_STRING "${THEME_VERSION_MAJOR}.${THEME_VERSION_MINOR}.${THEME_VERSION_PATCH}")
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Plasma)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)
include(GenerateExportHeader)
add_subdirectory(icons)
add_subdirectory(icons-dark)
add_subdirectory(maia)
add_subdirectory(wallpapers)
plasma_install_package(lookandfeel org.kde.maia.desktop look-and-feel lookandfeel)
plasma_install_package(lookandfeeldark org.kde.maiadark.desktop look-and-feel lookandfeel)
if (INSTALL_SDDM_THEME)
# Install the login theme into the SDDM directory
# Longer term we need to look at making SDDM load from look and feel somehow.. and allow copying at runtime
#NOTE this trailing slash is important to rename the directory
install(DIRECTORY sddm-theme/ DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/maia PATTERN "README.txt" EXCLUDE PATTERN "components" EXCLUDE PATTERN "dummydata" EXCLUDE)
install(DIRECTORY lookandfeel/contents/components DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/maia PATTERN "README.txt" EXCLUDE)
endif()
INSTALL(FILES colors/Maia.colors colors/MaiaDark.colors DESTINATION ${DATA_INSTALL_DIR}/color-schemes/)
if(EXISTS ${CMAKE_SOURCE_DIR}/po AND IS_DIRECTORY ${CMAKE_SOURCE_DIR}/po)
find_package(KF5I18n CONFIG REQUIRED)
ki18n_install(po)
endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)