Warning, /plasma/kwin/autotests/wayland/server/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 ########################################################
0002 # Test WaylandServerDisplay
0003 ########################################################
0004 set( testWaylandServerDisplay_SRCS
0005         test_display.cpp
0006     )
0007 add_executable(testWaylandServerDisplay ${testWaylandServerDisplay_SRCS})
0008 target_link_libraries( testWaylandServerDisplay Qt::Test Qt::Gui kwin Wayland::Server)
0009 add_test(NAME kwayland-testWaylandServerDisplay COMMAND testWaylandServerDisplay)
0010 ecm_mark_as_test(testWaylandServerDisplay)
0011 
0012 ########################################################
0013 # Test WaylandServerSeat
0014 ########################################################
0015 set( testWaylandServerSeat_SRCS
0016         test_seat.cpp
0017     )
0018 add_executable(testWaylandServerSeat ${testWaylandServerSeat_SRCS})
0019 target_link_libraries( testWaylandServerSeat Qt::Test Qt::Gui kwin Wayland::Server)
0020 add_test(NAME kwayland-testWaylandServerSeat COMMAND testWaylandServerSeat)
0021 ecm_mark_as_test(testWaylandServerSeat)
0022 
0023 ########################################################
0024 # Test No XDG_RUNTIME_DIR
0025 ########################################################
0026 add_executable(testNoXdgRuntimeDir test_no_xdg_runtime_dir.cpp)
0027 target_link_libraries( testNoXdgRuntimeDir Qt::Test kwin)
0028 add_test(NAME kwayland-testNoXdgRuntimeDir COMMAND testNoXdgRuntimeDir)
0029 ecm_mark_as_test(testNoXdgRuntimeDir)
0030 
0031 ########################################################
0032 # Test Tablet Interface
0033 ########################################################
0034 add_executable(testTabletInterface)
0035 qt6_generate_wayland_protocol_client_sources(testTabletInterface FILES
0036     ${WaylandProtocols_DATADIR}/unstable/tablet/tablet-unstable-v2.xml)
0037 target_sources(testTabletInterface PRIVATE test_tablet_interface.cpp ${TABLET_SRCS})
0038 target_link_libraries( testTabletInterface Qt::Test kwin Plasma::KWaylandClient Wayland::Client)
0039 add_test(NAME kwayland-testTabletInterface COMMAND testTabletInterface)
0040 ecm_mark_as_test(testTabletInterface)
0041 
0042 ########################################################
0043 # Test DataControlInterface
0044 ########################################################
0045 add_executable(testDataControlInterface test_datacontrol_interface.cpp ${DATACONTROL_SRCS})
0046 qt6_generate_wayland_protocol_client_sources(testDataControlInterface FILES
0047     ${PROJECT_SOURCE_DIR}/src/wayland/protocols/wlr-data-control-unstable-v1.xml)
0048 target_sources(testDataControlInterface PRIVATE test_datacontrol_interface.cpp ${DATACONTROL_SRCS})
0049 target_link_libraries( testDataControlInterface Qt::Test kwin Plasma::KWaylandClient Wayland::Client)
0050 add_test(NAME kwayland-testDataControlInterface COMMAND testDataControlInterface)
0051 ecm_mark_as_test(testDataControlInterface)
0052 
0053 ########################################################
0054 # Test Keyboard Shortcuts Inhibitor Interface
0055 ########################################################
0056 add_executable(testKeyboardShortcutsInhibitorInterface)
0057 qt6_generate_wayland_protocol_client_sources(testKeyboardShortcutsInhibitorInterface FILES
0058     ${WaylandProtocols_DATADIR}/unstable/keyboard-shortcuts-inhibit/keyboard-shortcuts-inhibit-unstable-v1.xml)
0059 target_sources(testKeyboardShortcutsInhibitorInterface PRIVATE test_keyboard_shortcuts_inhibitor_interface.cpp ${KEYBOARD_SHORTCUTS_INHIBITOR_SRCS})
0060 target_link_libraries(testKeyboardShortcutsInhibitorInterface Qt::Test kwin Plasma::KWaylandClient Wayland::Client)
0061 add_test(NAME kwayland-testKeyboardShortcutsInhibitorInterface COMMAND testKeyboardShortcutsInhibitorInterface)
0062 ecm_mark_as_test(testKeyboardShortcutsInhibitorInterface)
0063 
0064 ########################################################
0065 # Test Viewporter Interface
0066 ########################################################
0067 add_executable(testViewporterInterface)
0068 qt6_generate_wayland_protocol_client_sources(testViewporterInterface FILES
0069     ${WaylandProtocols_DATADIR}/stable/viewporter/viewporter.xml)
0070 target_sources(testViewporterInterface PRIVATE test_viewporter_interface.cpp ${VIEWPORTER_SRCS})
0071 target_link_libraries(testViewporterInterface Qt::Test kwin Plasma::KWaylandClient Wayland::Client)
0072 add_test(NAME kwayland-testViewporterInterface COMMAND testViewporterInterface)
0073 ecm_mark_as_test(testViewporterInterface)
0074 
0075 ########################################################
0076 # Test ScreencastV1Interface
0077 ########################################################
0078 add_executable(testScreencastV1Interface)
0079 qt6_generate_wayland_protocol_client_sources(testScreencastV1Interface FILES
0080     ${PLASMA_WAYLAND_PROTOCOLS_DIR}/zkde-screencast-unstable-v1.xml)
0081 target_sources(testScreencastV1Interface PRIVATE test_screencast.cpp ${SCREENCAST_SRCS})
0082 target_link_libraries(testScreencastV1Interface Qt::Test kwin Wayland::Client Plasma::KWaylandClient)
0083 add_test(NAME kwayland-testScreencastV1Interface COMMAND testScreencastV1Interface)
0084 ecm_mark_as_test(testScreencastV1Interface)
0085 
0086 ########################################################
0087 # Test InputMethod Interface
0088 ########################################################
0089 add_executable(testInputMethodInterface)
0090 qt6_generate_wayland_protocol_client_sources(testInputMethodInterface
0091     NO_INCLUDE_CORE_ONLY
0092     FILES
0093         ${WaylandProtocols_DATADIR}/unstable/input-method/input-method-unstable-v1.xml
0094 )
0095 target_sources(testInputMethodInterface PRIVATE
0096     test_inputmethod_interface.cpp
0097     ${PROJECT_SOURCE_DIR}/tests/fakeoutput.cpp
0098     ${INPUTMETHOD_SRCS}
0099 )
0100 target_link_libraries(testInputMethodInterface Qt::Test kwin Plasma::KWaylandClient Wayland::Client)
0101 add_test(NAME kwayland-testInputMethodInterface COMMAND testInputMethodInterface)
0102 ecm_mark_as_test(testInputMethodInterface)
0103 
0104 ########################################################
0105 # Test LayerShellV1 Interface
0106 ########################################################
0107 add_executable(testLayerShellV1Interface)
0108 qt6_generate_wayland_protocol_client_sources(testLayerShellV1Interface FILES
0109     ${PROJECT_SOURCE_DIR}/src/wayland/protocols/wlr-layer-shell-unstable-v1.xml
0110     ${WaylandProtocols_DATADIR}/stable/xdg-shell/xdg-shell.xml
0111 )
0112 target_sources(testLayerShellV1Interface PRIVATE test_layershellv1_interface.cpp ${LAYERSHELLV1_SRCS})
0113 target_link_libraries(testLayerShellV1Interface Qt::Test kwin Plasma::KWaylandClient Wayland::Client)
0114 add_test(NAME kwayland-testLayerShellV1Interface COMMAND testLayerShellV1Interface)
0115 ecm_mark_as_test(testLayerShellV1Interface)
0116 
0117 
0118 ########################################################
0119 # Test TextInputV3 Interface
0120 ########################################################
0121 add_executable(testTextInputV3Interface)
0122 qt6_generate_wayland_protocol_client_sources(testTextInputV3Interface FILES
0123     ${WaylandProtocols_DATADIR}/unstable/text-input/text-input-unstable-v3.xml)
0124 target_sources(testTextInputV3Interface PRIVATE test_textinputv3_interface.cpp ${TEXTINPUTV3_SRCS})
0125 target_link_libraries(testTextInputV3Interface Qt::Test kwin Plasma::KWaylandClient Wayland::Client)
0126 add_test(NAME kwayland-testTextInputV3Interface COMMAND testTextInputV3Interface)
0127 ecm_mark_as_test(testTextInputV3Interface)
0128 
0129 ########################################################
0130 # Test TextInputV1 Interface
0131 ########################################################
0132 add_executable(testTextInputV1Interface)
0133 qt6_generate_wayland_protocol_client_sources(testTextInputV1Interface FILES
0134     ${WaylandProtocols_DATADIR}/unstable/text-input/text-input-unstable-v1.xml)
0135 target_sources(testTextInputV1Interface PRIVATE test_textinputv1_interface.cpp ${TEXTINPUTV1_SRCS})
0136 target_link_libraries(testTextInputV1Interface Qt::Test kwin Plasma::KWaylandClient Wayland::Client)
0137 add_test(NAME kwayland-testTextInputV1Interface COMMAND testTextInputV1Interface)
0138 ecm_mark_as_test(testTextInputV1Interface)