8adc417f27bacf4474209fe1e224964c69997ed5
[platform/upstream/VK-GL-CTS.git] / targets / wayland / wayland.cmake
1 #-------------------------------------------------------------------------
2 # drawElements CMake utilities
3 # ----------------------------
4 #
5 # Copyright (c) 2016 The Khronos Group Inc.
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #      http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19 #-------------------------------------------------------------------------
20
21 message("*** Using Wayland target")
22 set(DEQP_TARGET_NAME "Wayland")
23
24 # Use Wayland target
25 set(DEQP_USE_WAYLAND    ON)
26
27 # Add FindWayland module
28 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/targets/default")
29
30 find_package(Wayland)
31 if (NOT WAYLAND_FOUND)
32         message(FATAL_ERROR "Wayland development package not found")
33 endif ()
34
35 set(DEQP_PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES})
36 include_directories(${WAYLAND_INCLUDE_DIR})