-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
68 lines (54 loc) · 2.52 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
project(teamsquirtle)
set(PROJECT_VERSION "5.9.90")
set(PROJECT_VERSION_MAJOR 5)
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
option(USE_KDE4 "Build a widget style for KDE4 (and nothing else)")
include(WriteBasicConfigVersionFile)
include(FeatureSummary)
if(USE_KDE4)
add_subdirectory(kstyle)
else()
find_package(ECM 0.0.9 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(GenerateExportHeader)
include(GtkUpdateIconCache)
option(WITH_DECORATIONS "Build TeamSquirtle window decorations for KWin" ON)
if(WITH_DECORATIONS)
find_package(KDecoration2 REQUIRED)
add_subdirectory(kdecoration)
endif()
add_subdirectory(cursors)
add_subdirectory(kstyle)
add_subdirectory(misc)
add_subdirectory(qtquickcontrols)
add_subdirectory(wallpapers)
INSTALL(FILES colors/TeamSquirtle.colors DESTINATION ${DATA_INSTALL_DIR}/color-schemes/)
INSTALL(FILES colors/TeamSquirtleDark.colors DESTINATION ${DATA_INSTALL_DIR}/color-schemes/)
INSTALL(FILES colors/TeamSquirtleHighContrast.colors DESTINATION ${DATA_INSTALL_DIR}/color-schemes/)
find_package(KF5Package CONFIG REQUIRED)
kpackage_install_package(lookandfeel.dark org.kde.teamsquirtledark.desktop look-and-feel plasma lookandfeel)
if(EXISTS ${CMAKE_SOURCE_DIR}/po AND IS_DIRECTORY ${CMAKE_SOURCE_DIR}/po)
find_package(KF5I18n CONFIG REQUIRED)
ki18n_install(po)
endif()
include(ECMSetupVersion)
ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX TEAMSQUIRTLE
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/TeamSquirtleConfigVersion.cmake"
)
# create a Config.cmake and a ConfigVersion.cmake file and install them
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/TeamSquirtle")
ecm_configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/TeamSquirtleConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/TeamSquirtleConfig.cmake"
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/TeamSquirtleConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/TeamSquirtleConfigVersion.cmake"
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
COMPONENT Devel
)
endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)