mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
This code is unused from quite long time, we are simply installing it or keeping it in repo because we want to probably use it in future. If someone wants to use it in future it can always be revived from git history See also : T14274 and T14278
69 lines
1.9 KiB
CMake
69 lines
1.9 KiB
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(plasma-phone-components)
|
|
|
|
set(QT_MIN_VERSION "5.15.0")
|
|
set(KF5_MIN_VERSION "5.78")
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
|
|
|
include(KDEInstallDirs)
|
|
include(KDECMakeSettings)
|
|
include(KDECompilerSettings NO_POLICY_SCOPE)
|
|
include(ECMOptionalAddSubdirectory)
|
|
include(ECMInstallIcons)
|
|
include(ECMSetupVersion)
|
|
include(ECMMarkNonGuiExecutable)
|
|
include(ECMGenerateHeaders)
|
|
include(GenerateExportHeader)
|
|
if(ECM_VERSION VERSION_GREATER_EQUAL 5.79)
|
|
include(KDEGitCommitHooks)
|
|
include(KDEClangFormat)
|
|
endif()
|
|
include(FeatureSummary)
|
|
|
|
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED
|
|
Core
|
|
Qml
|
|
Quick
|
|
)
|
|
|
|
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
|
|
I18n
|
|
KIO
|
|
Plasma
|
|
PlasmaQuick
|
|
Service
|
|
Notifications
|
|
Wayland
|
|
)
|
|
find_package(KWinDBusInterface)
|
|
set_package_properties(KWinDBusInterface PROPERTIES DESCRIPTION "KWin DBus interface"
|
|
TYPE REQUIRED
|
|
PURPOSE "Needed for virtual keyboard toggle button"
|
|
)
|
|
|
|
include(CheckIncludeFiles)
|
|
|
|
plasma_install_package(look-and-feel org.kde.plasma.phone look-and-feel)
|
|
plasma_install_package(shell org.kde.plasma.phoneshell shells)
|
|
|
|
install(FILES plasma_phone_components.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR})
|
|
install(DIRECTORY components/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell)
|
|
|
|
add_subdirectory(bin)
|
|
add_subdirectory(applets)
|
|
add_subdirectory(containments)
|
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
|
|
|
if(ECM_VERSION VERSION_GREATER_EQUAL 5.79)
|
|
# add clang-format target for all our real source files
|
|
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
|
|
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
|
|
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
|
|
endif()
|