Warning, /plasma/plasma-mobile/components/mobileshell/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org> 0002 # SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) 0005 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) 0006 0007 set(mobileshellplugin_SRCS 0008 mobileshellplugin.cpp 0009 mobileshellsettings.cpp 0010 shellutil.cpp 0011 windowutil.cpp 0012 components/direction.cpp 0013 quicksettings/quicksetting.cpp 0014 quicksettings/paginatemodel.cpp 0015 quicksettings/quicksettingsmodel.cpp 0016 quicksettings/savedquicksettings.cpp 0017 quicksettings/savedquicksettingsmodel.cpp 0018 notifications/notificationthumbnailer.cpp 0019 notifications/notificationfilemenu.cpp 0020 taskswitcher/displaysmodel.cpp 0021 ) 0022 if (QT_MAJOR_VERSION STREQUAL "5") 0023 if(QUICK_COMPILER) 0024 qtquick_compiler_add_resources(RESOURCES resources.qrc) 0025 else() 0026 qt5_add_resources(RESOURCES resources.qrc) 0027 endif() 0028 else() 0029 qt_add_resources(RESOURCES resources.qrc) 0030 endif() 0031 add_library(mobileshellplugin SHARED ${mobileshellplugin_SRCS} ${RESOURCES}) 0032 0033 target_link_libraries(mobileshellplugin 0034 PUBLIC 0035 Qt::Core 0036 PRIVATE 0037 Qt::DBus 0038 Qt::Qml 0039 Qt::Gui 0040 Qt::Quick 0041 KF5::ConfigWidgets # for KStandardAction 0042 KF5::KIOGui 0043 KF5::Plasma 0044 KF5::I18n 0045 KF5::Notifications 0046 KF5::PlasmaQuick 0047 KF5::KIOGui 0048 KF5::KIOWidgets # for PreviewJob 0049 KF5::WaylandClient 0050 KF5::Service 0051 KF5::Package 0052 ) 0053 0054 # we compiled the qml files, just install qmldir 0055 install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell) 0056 0057 ecm_generate_qmltypes(org.kde.plasma.private.mobileshell 1.0 DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell) 0058 install(TARGETS mobileshellplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell)