2014-08-19 07:31:31 +00:00
|
|
|
include_directories(${CMAKE_BINARY_DIR}/wayland_protocols/)
|
|
|
|
set_source_files_properties(${CMAKE_BINARY_DIR}/wayland_protocols/wayland-client-fullscreen-shell.c GENERATED)
|
2014-08-13 10:54:02 +00:00
|
|
|
########################################################
|
|
|
|
# Test WaylandConnectionThread
|
|
|
|
########################################################
|
|
|
|
set( testWaylandConnectionThread_SRCS test_wayland_connection_thread.cpp ${KWIN_SOURCE_DIR}/wayland_client/connection_thread.cpp )
|
|
|
|
add_executable(testWaylandConnectionThread ${testWaylandConnectionThread_SRCS})
|
|
|
|
target_link_libraries( testWaylandConnectionThread Qt5::Test Wayland::Client)
|
|
|
|
add_test(kwin-testWaylandConnectionThread testWaylandConnectionThread)
|
|
|
|
ecm_mark_as_test(testWaylandConnectionThread)
|
2014-08-18 12:05:35 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandRegistry
|
|
|
|
########################################################
|
|
|
|
set( testWaylandRegistry_SRCS
|
|
|
|
test_wayland_registry.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/connection_thread.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/registry.cpp
|
2014-08-19 07:31:31 +00:00
|
|
|
${CMAKE_BINARY_DIR}/wayland_protocols/wayland-client-fullscreen-shell.c
|
2014-08-18 12:05:35 +00:00
|
|
|
)
|
|
|
|
add_executable(testWaylandRegistry ${testWaylandRegistry_SRCS})
|
2014-08-19 07:31:31 +00:00
|
|
|
add_dependencies(testWaylandRegistry wayland-client-fullscreen-shell)
|
2014-08-18 12:05:35 +00:00
|
|
|
target_link_libraries( testWaylandRegistry Qt5::Test Wayland::Client)
|
|
|
|
add_test(kwin-testWaylandRegistry testWaylandRegistry)
|
|
|
|
ecm_mark_as_test(testWaylandRegistry)
|
2014-08-19 07:31:31 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandFullscreenShell
|
|
|
|
########################################################
|
|
|
|
set( testWaylandFullscreenShell_SRCS
|
|
|
|
test_wayland_fullscreen_shell.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/connection_thread.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/registry.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/fullscreen_shell.cpp
|
|
|
|
${CMAKE_BINARY_DIR}/wayland_protocols/wayland-client-fullscreen-shell.c
|
|
|
|
)
|
|
|
|
add_executable(testWaylandFullscreenShell ${testWaylandFullscreenShell_SRCS})
|
|
|
|
add_dependencies(testWaylandFullscreenShell wayland-client-fullscreen-shell)
|
|
|
|
target_link_libraries( testWaylandFullscreenShell Qt5::Test Wayland::Client)
|
|
|
|
add_test(kwin-testWaylandFullscreenShell testWaylandFullscreenShell)
|
|
|
|
ecm_mark_as_test(testWaylandFullscreenShell)
|
2014-08-19 14:08:02 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandOutput
|
|
|
|
########################################################
|
|
|
|
set( testWaylandOutput_SRCS
|
|
|
|
test_wayland_output.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/connection_thread.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/registry.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/fullscreen_shell.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/output.cpp
|
|
|
|
${CMAKE_BINARY_DIR}/wayland_protocols/wayland-client-fullscreen-shell.c
|
|
|
|
)
|
|
|
|
add_executable(testWaylandOutput ${testWaylandOutput_SRCS})
|
|
|
|
add_dependencies(testWaylandOutput wayland-client-fullscreen-shell)
|
|
|
|
target_link_libraries( testWaylandOutput Qt5::Test Wayland::Client)
|
|
|
|
add_test(kwin-testWaylandOutput testWaylandOutput)
|
|
|
|
ecm_mark_as_test(testWaylandOutput)
|
2014-08-20 09:27:09 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandShell
|
|
|
|
########################################################
|
|
|
|
set( testWaylandShell_SRCS
|
|
|
|
test_wayland_shell.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/connection_thread.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/registry.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/fullscreen_shell.cpp
|
|
|
|
${KWIN_SOURCE_DIR}/wayland_client/shell.cpp
|
|
|
|
${CMAKE_BINARY_DIR}/wayland_protocols/wayland-client-fullscreen-shell.c
|
|
|
|
)
|
|
|
|
add_executable(testWaylandShell ${testWaylandShell_SRCS})
|
|
|
|
add_dependencies(testWaylandShell wayland-client-fullscreen-shell)
|
|
|
|
target_link_libraries( testWaylandShell Qt5::Test Wayland::Client)
|
|
|
|
add_test(kwin-testWaylandShell testWaylandShell)
|
|
|
|
ecm_mark_as_test(testWaylandShell)
|