Set the library path for GLESv1 and GLESv2
[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 # GLESv1 lib
28 find_library(GLES1_LIBRARY GLESv1_CM PATHS /usr/lib)
29 set(DEQP_GLES1_LIBRARIES ${GLES1_LIBRARY})
30
31 # GLESv2 lib
32 find_library(GLES2_LIBRARY GLESv2 PATHS /usr/lib)
33 set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
34
35 # Add FindWayland module
36 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/targets/default")
37
38 find_package(Wayland)
39 if (NOT WAYLAND_FOUND)
40         message(FATAL_ERROR "Wayland development package not found")
41 endif ()
42
43 set(DEQP_PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES})
44 include_directories(${WAYLAND_INCLUDE_DIR})