shift-shell/components/mobileshell/CMakeLists.txt
2022-03-10 22:40:21 -05:00

54 lines
1.7 KiB
CMake

# SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
# SPDX-License-Identifier: GPL-2.0-or-later
qt_add_dbus_interfaces(DBUS_SRCS dbus/org.kde.KWin.ScreenShot2.xml
dbus/org.kde.KScreen.xml
${KWIN_VIRTUALKEYBOARD_INTERFACE})
set(mobileshellplugin_SRCS
mobileshellplugin.cpp
shellutil.cpp
quicksettingsmodel.cpp
mobileshellsettings.cpp
vkbdinterface.cpp
displaysmodel.cpp
notifications/notificationthumbnailer.cpp
notifications/notificationfilemenu.cpp
${DBUS_SRCS}
)
if(QUICK_COMPILER)
qtquick_compiler_add_resources(RESOURCES resources.qrc)
else()
qt5_add_resources(RESOURCES resources.qrc)
endif()
add_library(mobileshellplugin ${mobileshellplugin_SRCS} ${RESOURCES})
target_link_libraries(mobileshellplugin
PUBLIC
Qt::Core
PRIVATE
Qt::DBus
Qt::Qml
Qt::Gui
Qt::Quick
KF5::ConfigWidgets # for KStandardAction
KF5::KIOGui
KF5::Plasma
KF5::I18n
KF5::Notifications
KF5::PlasmaQuick
KF5::KIOGui
KF5::KIOWidgets # for PreviewJob
KF5::WaylandClient
KF5::Service
)
# we compiled the qml files, just install qmldir
install(FILES qml/qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell)
ecm_generate_qmltypes(org.kde.plasma.private.mobileshell 1.0 DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell)
install(TARGETS mobileshellplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell)