2014-09-17 11:23:06 +00:00
|
|
|
include_directories(${CMAKE_BINARY_DIR}/wayland_protocols/)
|
|
|
|
set_source_files_properties(${CMAKE_BINARY_DIR}/wayland_protocols/wayland-client-fullscreen-shell.c GENERATED)
|
|
|
|
########################################################
|
|
|
|
# Test WaylandConnectionThread
|
|
|
|
########################################################
|
|
|
|
set( testWaylandConnectionThread_SRCS
|
|
|
|
test_wayland_connection_thread.cpp
|
|
|
|
)
|
|
|
|
add_executable(testWaylandConnectionThread ${testWaylandConnectionThread_SRCS})
|
2014-09-17 13:10:43 +00:00
|
|
|
target_link_libraries( testWaylandConnectionThread Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer Wayland::Client Wayland::Server)
|
2014-09-17 14:22:34 +00:00
|
|
|
add_test(kwayland-testWaylandConnectionThread testWaylandConnectionThread)
|
2014-09-17 11:23:06 +00:00
|
|
|
ecm_mark_as_test(testWaylandConnectionThread)
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandRegistry
|
|
|
|
########################################################
|
|
|
|
set( testWaylandRegistry_SRCS
|
|
|
|
test_wayland_registry.cpp
|
|
|
|
)
|
|
|
|
add_executable(testWaylandRegistry ${testWaylandRegistry_SRCS})
|
2014-09-17 13:10:43 +00:00
|
|
|
target_link_libraries( testWaylandRegistry Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer Wayland::Client Wayland::Server)
|
2014-09-17 14:22:34 +00:00
|
|
|
add_test(kwayland-testWaylandRegistry testWaylandRegistry)
|
2014-09-17 11:23:06 +00:00
|
|
|
ecm_mark_as_test(testWaylandRegistry)
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandFullscreenShell
|
|
|
|
########################################################
|
|
|
|
if(Wayland_VERSION VERSION_GREATER "1.4.0")
|
|
|
|
set( testWaylandFullscreenShell_SRCS
|
|
|
|
test_wayland_fullscreen_shell.cpp
|
|
|
|
)
|
|
|
|
add_executable(testWaylandFullscreenShell ${testWaylandFullscreenShell_SRCS})
|
2014-09-17 13:10:43 +00:00
|
|
|
target_link_libraries( testWaylandFullscreenShell Qt5::Test KF5::WaylandClient Wayland::Client)
|
2014-09-17 14:22:34 +00:00
|
|
|
add_test(kwayland-testWaylandFullscreenShell testWaylandFullscreenShell)
|
2014-09-17 11:23:06 +00:00
|
|
|
ecm_mark_as_test(testWaylandFullscreenShell)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandOutput
|
|
|
|
########################################################
|
|
|
|
set( testWaylandOutput_SRCS
|
|
|
|
test_wayland_output.cpp
|
|
|
|
)
|
|
|
|
add_executable(testWaylandOutput ${testWaylandOutput_SRCS})
|
2014-09-17 13:10:43 +00:00
|
|
|
target_link_libraries( testWaylandOutput Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer Wayland::Client Wayland::Server)
|
2014-09-17 14:22:34 +00:00
|
|
|
add_test(kwayland-testWaylandOutput testWaylandOutput)
|
2014-09-17 11:23:06 +00:00
|
|
|
ecm_mark_as_test(testWaylandOutput)
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandShell
|
|
|
|
########################################################
|
|
|
|
set( testWaylandShell_SRCS
|
|
|
|
test_wayland_shell.cpp
|
|
|
|
)
|
|
|
|
add_executable(testWaylandShell ${testWaylandShell_SRCS})
|
2014-09-17 13:10:43 +00:00
|
|
|
target_link_libraries( testWaylandShell Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer Wayland::Client Wayland::Server)
|
2014-09-17 14:22:34 +00:00
|
|
|
add_test(kwayland-testWaylandShell testWaylandShell)
|
2014-09-17 11:23:06 +00:00
|
|
|
ecm_mark_as_test(testWaylandShell)
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandSurface
|
|
|
|
########################################################
|
|
|
|
set( testWaylandSurface_SRCS
|
|
|
|
test_wayland_surface.cpp
|
|
|
|
)
|
|
|
|
add_executable(testWaylandSurface ${testWaylandSurface_SRCS})
|
2014-09-17 13:10:43 +00:00
|
|
|
target_link_libraries( testWaylandSurface Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer Wayland::Client Wayland::Server)
|
2014-09-17 14:22:34 +00:00
|
|
|
add_test(kwayland-testWaylandSurface testWaylandSurface)
|
2014-09-17 11:23:06 +00:00
|
|
|
ecm_mark_as_test(testWaylandSurface)
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandSeat
|
|
|
|
########################################################
|
|
|
|
set( testWaylandSeat_SRCS
|
|
|
|
test_wayland_seat.cpp
|
|
|
|
)
|
|
|
|
add_executable(testWaylandSeat ${testWaylandSeat_SRCS})
|
2014-09-17 13:10:43 +00:00
|
|
|
target_link_libraries( testWaylandSeat Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer Wayland::Client Wayland::Server)
|
2014-09-17 14:22:34 +00:00
|
|
|
add_test(kwayland-testWaylandSeat testWaylandSeat)
|
2014-09-17 11:23:06 +00:00
|
|
|
ecm_mark_as_test(testWaylandSeat)
|
2014-09-22 06:52:05 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test ShmPool
|
|
|
|
########################################################
|
|
|
|
set( testShmPool_SRCS
|
|
|
|
test_shm_pool.cpp
|
|
|
|
)
|
|
|
|
add_executable(testShmPool ${testShmPool_SRCS})
|
|
|
|
target_link_libraries( testShmPool Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer)
|
|
|
|
add_test(kwayland-testShmPool testShmPool)
|
|
|
|
ecm_mark_as_test(testShmPool)
|
2014-09-22 08:24:21 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test Compositor
|
|
|
|
########################################################
|
|
|
|
set( testCompositor_SRCS
|
|
|
|
test_compositor.cpp
|
|
|
|
)
|
|
|
|
add_executable(testCompositor ${testCompositor_SRCS})
|
|
|
|
target_link_libraries( testCompositor Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer)
|
|
|
|
add_test(kwayland-testCompositor testCompositor)
|
|
|
|
ecm_mark_as_test(testCompositor)
|
2014-10-14 12:04:35 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test SubCompositor
|
|
|
|
########################################################
|
|
|
|
set( testSubCompositor_SRCS
|
|
|
|
test_wayland_subcompositor.cpp
|
|
|
|
)
|
|
|
|
add_executable(testSubCompositor ${testSubCompositor_SRCS})
|
|
|
|
target_link_libraries( testSubCompositor Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer)
|
|
|
|
add_test(kwayland-testSubCompositor testSubCompositor)
|
|
|
|
ecm_mark_as_test(testSubCompositor)
|
|
|
|
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test SubSurface
|
|
|
|
########################################################
|
|
|
|
set( testSubSurface_SRCS
|
|
|
|
test_wayland_subsurface.cpp
|
|
|
|
)
|
|
|
|
add_executable(testSubSurface ${testSubSurface_SRCS})
|
|
|
|
target_link_libraries( testSubSurface Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer Wayland::Client)
|
|
|
|
add_test(kwayland-testSubSurface testSubSurface)
|
|
|
|
ecm_mark_as_test(testSubSurface)
|
2014-10-16 11:04:51 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test Region
|
|
|
|
########################################################
|
|
|
|
set( testRegion_SRCS
|
|
|
|
test_wayland_region.cpp
|
|
|
|
)
|
|
|
|
add_executable(testRegion ${testRegion_SRCS})
|
|
|
|
target_link_libraries( testRegion Qt5::Test Qt5::Gui KF5::WaylandClient KF5::WaylandServer)
|
|
|
|
add_test(kwayland-testRegion testRegion)
|
|
|
|
ecm_mark_as_test(testRegion)
|