CP: Fix required sample count tests
[platform/upstream/VK-GL-CTS.git] / targets / wayland / wayland.cmake
1 message("*** Using Wayland target")
2 set(DEQP_TARGET_NAME    "WAYLAND")
3 set(DEQP_RUNTIME_LINK   ON)
4 set(DEQP_SUPPORT_GLES2  ON)
5 set(DEQP_SUPPORT_GLES3  ON)
6 set(DEQP_SUPPORT_EGL    ON)
7
8 # Use Wayland target
9 set(DEQP_USE_WAYLAND    ON)
10
11 # Add FindWayland module
12 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/targets/wayland")
13
14 find_package(Wayland)
15 if (NOT WAYLAND_FOUND)
16         message(FATAL_ERROR "Wayland development package not found")
17 endif ()
18
19 set(DEQP_PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES})
20 include_directories(${WAYLAND_INCLUDE_DIR})
21
22 # Platform sources
23 set(TCUTIL_PLATFORM_SRCS
24         wayland/tcuWayland.cpp
25         wayland/tcuWayland.hpp
26         wayland/tcuWaylandPlatform.cpp
27         wayland/tcuWaylandPlatform.hpp
28         wayland/tcuWaylandEglPlatform.cpp
29         wayland/tcuWaylandEglPlatform.hpp
30         )