-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
29 lines (20 loc) · 1 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
cmake_minimum_required(VERSION 3.16)
project(kleaner)
set(KF_MIN_VERSION "5.68.0")
set(QT_MIN_VERSION "5.12.0")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui QuickControls2 Widgets)
find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS Kirigami2 I18n CoreAddons)
find_package(KF5KExiv2)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
install(PROGRAMS io.github.najepaliya.kleaner.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES io.github.najepaliya.kleaner.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES io.github.najepaliya.kleaner.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
add_subdirectory(src)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)