Warning, /plasma/libkscreen/backends/kwayland/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 
0002 set(wayland_SRCS
0003     waylandbackend.cpp
0004     waylandconfig.cpp
0005     waylandoutputdevice.cpp
0006     waylandoutputmanagement.cpp
0007     waylandoutputdevicemode.cpp
0008     waylandscreen.cpp
0009     ../utils.cpp
0010 )
0011 qt_add_dbus_interface(wayland_SRCS org.kde.KWin.TabletModeManager.xml tabletmodemanager_interface)
0012 
0013 ecm_qt_declare_logging_category(wayland_SRCS
0014                                 HEADER kscreen_kwayland_logging.h
0015                                 IDENTIFIER KSCREEN_WAYLAND
0016                                 CATEGORY_NAME kscreen.kwayland
0017 )
0018 
0019 add_library(KSC_KWayland MODULE)
0020 if (QT_MAJOR_VERSION EQUAL "5")
0021     ecm_add_qtwayland_client_protocol(wayland_SRCS
0022         PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-output-device-v2.xml
0023         BASENAME kde-output-device-v2
0024     )
0025 
0026     ecm_add_qtwayland_client_protocol(wayland_SRCS
0027         PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-output-management-v2.xml
0028         BASENAME kde-output-management-v2
0029     )
0030 
0031     ecm_add_qtwayland_client_protocol(wayland_SRCS
0032         PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-output-order-v1.xml
0033         BASENAME kde-output-order-v1
0034     )
0035 else()
0036     qt6_generate_wayland_protocol_client_sources(KSC_KWayland FILES
0037         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-output-device-v2.xml
0038         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-output-management-v2.xml
0039         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-output-order-v1.xml
0040     )
0041 endif()
0042 
0043 target_sources(KSC_KWayland PRIVATE ${wayland_SRCS})
0044 
0045 set_target_properties(KSC_KWayland PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf${QT_MAJOR_VERSION}/kscreen")
0046 set_target_properties(KSC_KWayland PROPERTIES PREFIX "")
0047 target_link_libraries(KSC_KWayland Qt::Core
0048                                   Qt::DBus
0049                                   Qt::Gui
0050                                   KF5::ConfigCore
0051                                   KF5::Screen
0052                                   KF5::WaylandClient
0053                                   Wayland::Client
0054 )
0055 
0056 install(TARGETS KSC_KWayland DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf${QT_MAJOR_VERSION}/kscreen/)