Warning, /plasma/kwayland-integration/src/windowsystem/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_library(KF5WindowSystemKWaylandPlugin MODULE)
0002 set(wayland_plugin_SRCS
0003     plugin.cpp
0004     waylandintegration.cpp
0005     windoweffects.cpp
0006     windowinfo.cpp
0007     windowshadow.cpp
0008     windowsystem.cpp
0009     waylandxdgactivationv1.cpp
0010     plugin.h
0011     waylandintegration.h
0012     windoweffects.h
0013     windowinfo.h
0014     windowshadow.h
0015     windowsystem.h
0016     waylandxdgactivationv1_p.h
0017 )
0018 if (QT_MAJOR_VERSION EQUAL "5")
0019     ecm_add_qtwayland_client_protocol(wayland_plugin_SRCS
0020         PROTOCOL ${WaylandProtocols_DATADIR}/staging/xdg-activation/xdg-activation-v1.xml
0021         BASENAME xdg-activation-v1
0022     )
0023 else()
0024     qt6_generate_wayland_protocol_client_sources(KF5WindowSystemKWaylandPlugin FILES
0025         ${WaylandProtocols_DATADIR}/staging/xdg-activation/xdg-activation-v1.xml
0026     )
0027 
0028 endif()
0029 ecm_qt_declare_logging_category(wayland_plugin_SRCS HEADER logging.h IDENTIFIER KWAYLAND_KWS
0030     CATEGORY_NAME org.kde.kf5.kwindowsystem.kwayland DEFAULT_SEVERITY Warning
0031     DESCRIPTION "wayland integration (windowsystem)" EXPORT KWAYLAND)
0032 
0033 target_sources(KF5WindowSystemKWaylandPlugin PRIVATE ${wayland_plugin_SRCS})
0034 
0035 pkg_check_modules(XKBCommon REQUIRED IMPORTED_TARGET xkbcommon)
0036 
0037 target_link_libraries(KF5WindowSystemKWaylandPlugin
0038     KF5::WindowSystem
0039     KF5::WaylandClient
0040     Qt::Widgets
0041     Wayland::Client
0042     Qt::WaylandClient
0043     Qt::WaylandClientPrivate
0044     PkgConfig::XKBCommon
0045 )
0046 
0047 if (QT_MAJOR_VERSION EQUAL "5")
0048     target_link_libraries(KF5WindowSystemKWaylandPlugin
0049         Qt::XkbCommonSupportPrivate
0050     )
0051 endif()
0052 
0053 install(
0054     TARGETS
0055         KF5WindowSystemKWaylandPlugin
0056     DESTINATION
0057         ${KDE_INSTALL_PLUGINDIR}/kf${QT_MAJOR_VERSION}/kwindowsystem/
0058 )
0059 
0060 ecm_qt_install_logging_categories(
0061         EXPORT KWAYLAND
0062         FILE kwindowsystem.kwayland.categories
0063         DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0064         )
0065