Warning, /frameworks/kidletime/src/plugins/wayland/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_library(KF5IdleTimeWaylandPlugin MODULE)
0002 if (QT_MAJOR_VERSION EQUAL "5")
0003     ecm_add_qtwayland_client_protocol(idletime_plugin_SRCS
0004         PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/idle.xml
0005         BASENAME idle
0006     )
0007     ecm_add_qtwayland_client_protocol(idletime_plugin_SRCS
0008         PROTOCOL ${WaylandProtocols_DATADIR}/staging/ext-idle-notify/ext-idle-notify-v1.xml
0009         BASENAME ext-idle-notify-v1
0010     )
0011 else()
0012     qt6_generate_wayland_protocol_client_sources(KF5IdleTimeWaylandPlugin FILES
0013         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/idle.xml
0014         ${WAYLAND_PROTOCOLS_DIR}/ext-idle-notify-v1.xml)
0015 endif()
0016 target_sources(KF5IdleTimeWaylandPlugin PRIVATE poller.cpp ${idletime_plugin_SRCS})
0017 
0018 target_link_libraries(KF5IdleTimeWaylandPlugin
0019     KF5::IdleTime
0020     Qt${QT_MAJOR_VERSION}::WaylandClient
0021     Qt${QT_MAJOR_VERSION}::GuiPrivate
0022     Wayland::Client
0023 )
0024 
0025 install(
0026     TARGETS
0027         KF5IdleTimeWaylandPlugin
0028     DESTINATION
0029         ${KDE_INSTALL_PLUGINDIR}/kf5/org.kde.kidletime.platforms/
0030 )