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