shift-shell/quicksettings/screenrotation/CMakeLists.txt
2023-03-03 06:01:23 +00:00

35 lines
1.1 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
screenrotationutil.cpp
${DBUS_SRCS}
)
add_library(screenrotationplugin ${screenrotationplugin_SRCS})
target_link_libraries(screenrotationplugin
PUBLIC
Qt::Core
PRIVATE
Qt::DBus
KF6::CoreAddons
KF6::QuickAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::I18n
KF6::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)