shift-shell/quicksettings/screenrotation/CMakeLists.txt
Alexander Lohnau 749bb82ace Link to QtQml/QtQuick instead of KDeclarative targets
We actually don'T need any of those classes
2023-03-21 11:30:17 +00:00

34 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
Qt::Core
Qt::Qml
Qt::Quick
Qt::DBus
KF6::CoreAddons
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)