mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
# SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
qt_add_dbus_interfaces(DBUS_SRCS dbus/org.kde.KScreen.xml)
|
|
|
|
set(screenrotationplugin_SRCS
|
|
screenrotationplugin.cpp screenrotationplugin.h
|
|
screenrotationutil.cpp screenrotationutil.h
|
|
${DBUS_SRCS}
|
|
)
|
|
|
|
add_library(screenrotationplugin ${screenrotationplugin_SRCS})
|
|
|
|
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
|
|
Declarative
|
|
)
|
|
|
|
target_link_libraries(screenrotationplugin
|
|
PUBLIC
|
|
Qt::Core
|
|
PRIVATE
|
|
Qt::DBus
|
|
KF5::CoreAddons
|
|
KF5::QuickAddons
|
|
KF5::ConfigCore
|
|
KF5::ConfigGui
|
|
KF5::I18n
|
|
KF5::Notifications
|
|
)
|
|
|
|
set_property(TARGET screenrotationplugin PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/screenrotation)
|
|
file(COPY qmldir DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/screenrotation)
|
|
|
|
install(TARGETS screenrotationplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/screenrotation)
|
|
install(FILES qmldir ${qml_SRC} DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/screenrotation)
|
|
|
|
plasma_install_package(package org.kde.plasma.quicksetting.screenrotation quicksettings)
|
|
|
|
|