98e64e01a6
Summary: * remove unneeded cmake includes * consistently use org.kde.plasma.* prefix for names * fix catalog names to match applet identifier * bump min cmake version to 3.0 * remove duplicated X-KDE-PluginInfo-Name entries * remove no longer (Plasma >=5.8) needed i18nd in wallpaper code * prepare qml extension for ki18n usage Reviewers: mart Reviewed By: mart Subscribers: kde-frameworks-devel, apol Tags: #frameworks Differential Revision: https://phabricator.kde.org/D10848
32 lines
709 B
CMake
32 lines
709 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(plasma-%{APPNAMELC})
|
|
|
|
find_package(ECM 1.4.0 REQUIRED NO_MODULE)
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
|
|
|
|
include(KDEInstallDirs)
|
|
include(KDECMakeSettings)
|
|
include(KDECompilerSettings NO_POLICY_SCOPE)
|
|
include(FeatureSummary)
|
|
|
|
find_package(KF5 REQUIRED COMPONENTS
|
|
Plasma
|
|
I18n
|
|
)
|
|
|
|
find_package(Qt5 CONFIG REQUIRED COMPONENTS
|
|
Qml
|
|
Gui
|
|
Core
|
|
)
|
|
|
|
# wallpaper applet
|
|
# TODO: adapt "org.kde.plasma" here & elsewhere if needed (see README)
|
|
plasma_install_package(package org.kde.plasma.%{APPNAMELC} wallpapers wallpaper)
|
|
|
|
# qml extension plugin
|
|
add_subdirectory(plugin)
|
|
|
|
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|