Warning, /plasma/kpipewire/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_library(PipeWireScreencastingTest STATIC screencasting.cpp screencastingrequest.cpp)
0002 
0003 qt_add_dbus_interface(
0004    SRCS
0005    org.freedesktop.portal.ScreenCast.xml
0006    xdp_dbus_screencast_interface
0007 )
0008 
0009 qt_add_dbus_interface(
0010    SRCS
0011    org.freedesktop.portal.RemoteDesktop.xml
0012    xdp_dbus_remotedesktop_interface
0013 )
0014 
0015 if (QT_MAJOR_VERSION EQUAL "5")
0016     ecm_add_qtwayland_client_protocol(PipeWireScreencastingTest
0017         PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/zkde-screencast-unstable-v1.xml
0018         BASENAME zkde-screencast-unstable-v1
0019     )
0020 else()
0021     qt6_generate_wayland_protocol_client_sources(PipeWireScreencastingTest FILES
0022         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/zkde-screencast-unstable-v1.xml)
0023 endif()
0024 
0025 target_link_libraries(PipeWireScreencastingTest PUBLIC KF5::WaylandClient Wayland::Client Qt::DBus Qt::GuiPrivate KPipeWire Qt::WaylandClient)
0026 
0027 add_executable(recordme main.cpp recordme.qrc PlasmaRecordMe.cpp)
0028 target_link_libraries(recordme PipeWireScreencastingTest Qt::Quick)
0029 
0030 add_executable(kpipewireheadlesstest HeadlessTest.cpp ${SRCS})
0031 target_link_libraries(kpipewireheadlesstest PipeWireScreencastingTest KPipeWireDmaBuf)
0032 
0033 #########
0034 
0035 qt_add_dbus_interface(
0036    XDP_SRCS
0037    org.freedesktop.portal.ScreenCast.xml
0038    xdp_dbus_screencast_interface
0039 )
0040 
0041 add_executable(xdp-recordme xdp-main.cpp recordme.qrc ${XDP_SRCS} RecordMe.cpp)
0042 target_link_libraries(xdp-recordme Qt::DBus Qt::Quick KPipeWire Qt::GuiPrivate Wayland::Client KF5::WaylandClient Qt::WaylandClient )
0043 
0044 option(INSTALL_TESTS "The recordme test needs installing, disabled by default for convenience" OFF)
0045 if(INSTALL_TESTS)
0046    configure_file(org.kde.recordme.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.recordme.desktop @ONLY)
0047    configure_file(org.kde.kpipewireheadlesstest.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kpipewireheadlesstest.desktop @ONLY)
0048 
0049    install(TARGETS recordme kpipewireheadlesstest DESTINATION ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0050    install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.recordme.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0051    install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kpipewireheadlesstest.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0052    install(TARGETS xdp-recordme DESTINATION ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0053 endif()