diff --git a/src/wayland/autotests/client/CMakeLists.txt b/src/wayland/autotests/client/CMakeLists.txt index b00e9facb7..5e6d8541a7 100644 --- a/src/wayland/autotests/client/CMakeLists.txt +++ b/src/wayland/autotests/client/CMakeLists.txt @@ -24,6 +24,8 @@ ecm_mark_as_test(testWaylandRegistry) # Test WaylandFullscreenShell ######################################################## if(Wayland_VERSION VERSION_GREATER "1.4.0") + find_program(WESTON_EXECUTABLE weston DOC "Path to the weston executable.") + if(WESTON_EXECUTABLE) set( testWaylandFullscreenShell_SRCS test_wayland_fullscreen_shell.cpp ) @@ -31,6 +33,9 @@ if(Wayland_VERSION VERSION_GREATER "1.4.0") target_link_libraries( testWaylandFullscreenShell Qt5::Test KF5::WaylandClient Wayland::Client) add_test(NAME kwayland-testWaylandFullscreenShell COMMAND testWaylandFullscreenShell) ecm_mark_as_test(testWaylandFullscreenShell) + else() + message(STATUS "The weston executable was not found. Some autotests will not be executed.") + endif() endif() ########################################################