-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
68 lines (52 loc) · 2.07 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
#
# SPDX-FileCopyrightText: 2020 George Florea Bănuș <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
cmake_minimum_required(VERSION 3.15)
project(haruna LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(ECM 1.0.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(KDEInstallDirs)
include(ECMInstallIcons)
include(FeatureSummary)
find_package(Qt5Core REQUIRED)
set_package_properties(Qt5Core PROPERTIES
TYPE REQUIRED)
find_package(Qt5Quick REQUIRED)
set_package_properties(Qt5Quick PROPERTIES
TYPE REQUIRED)
find_package(Qt5QuickControls2 REQUIRED)
set_package_properties(Qt5QuickControls2 PROPERTIES
TYPE REQUIRED)
find_package(KF5Config REQUIRED)
set_package_properties(KF5Config PROPERTIES
TYPE REQUIRED
URL "https://api.kde.org/frameworks/kconfig/html/index.html")
find_package(KF5CoreAddons REQUIRED)
set_package_properties(KF5CoreAddons PROPERTIES
TYPE REQUIRED
URL "https://api.kde.org/frameworks/kcoreaddons/html/index.html")
find_package(KF5FileMetaData REQUIRED)
set_package_properties(KF5FileMetaData PROPERTIES
TYPE REQUIRED
URL "https://api.kde.org/frameworks/kfilemetadata/html/index.html")
find_package(KF5I18n REQUIRED)
set_package_properties(KF5I18n PROPERTIES
TYPE REQUIRED
URL "https://api.kde.org/frameworks/ki18n/html/index.html")
find_package(KF5XmlGui REQUIRED)
set_package_properties(KF5XmlGui PROPERTIES
TYPE REQUIRED
URL "https://api.kde.org/frameworks/kxmlgui/html/index.html")
find_package(KF5WindowSystem REQUIRED)
add_subdirectory(src)
install(FILES data/org.kde.haruna.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES data/org.kde.haruna.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
ecm_install_icons(ICONS data/haruna.svg DESTINATION ${KDE_INSTALL_ICONDIR})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)