2021-05-17 14:44:51 +02:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2017-05-19 01:46:11 +02:00
|
|
|
|
|
|
|
project(plasma-%{APPNAMELC})
|
|
|
|
|
|
|
|
find_package(ECM 1.4.0 REQUIRED NO_MODULE)
|
2019-01-19 16:09:29 +01:00
|
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
2017-05-19 01:46:11 +02:00
|
|
|
|
|
|
|
include(KDEInstallDirs)
|
|
|
|
include(KDECMakeSettings)
|
|
|
|
include(KDECompilerSettings NO_POLICY_SCOPE)
|
2018-02-26 07:11:54 +01:00
|
|
|
include(FeatureSummary)
|
2017-05-19 01:46:11 +02:00
|
|
|
|
|
|
|
find_package(KF5 REQUIRED COMPONENTS
|
|
|
|
Plasma
|
|
|
|
I18n
|
|
|
|
)
|
|
|
|
|
|
|
|
find_package(Qt5 CONFIG REQUIRED COMPONENTS
|
|
|
|
Qml
|
|
|
|
Gui
|
|
|
|
Core
|
|
|
|
)
|
|
|
|
|
|
|
|
# plasmoid
|
2018-02-26 07:11:54 +01:00
|
|
|
# TODO: adapt "org.kde.plasma" here & elsewhere if needed (see README)
|
|
|
|
plasma_install_package(package org.kde.plasma.%{APPNAMELC})
|
2017-05-19 01:46:11 +02:00
|
|
|
|
|
|
|
# qml extension plugin
|
|
|
|
add_subdirectory(plugin)
|
2018-02-26 07:11:54 +01:00
|
|
|
|
|
|
|
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|