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 21message("*** Using Wayland target") 22set(DEQP_TARGET_NAME "Wayland") 23 24# Use Wayland target 25set(DEQP_USE_WAYLAND ON) 26 27# Add FindWayland module 28set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/targets/default") 29 30find_package(Wayland) 31if (NOT WAYLAND_FOUND) 32 message(FATAL_ERROR "Wayland development package not found") 33endif () 34 35set(DEQP_PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES}) 36include_directories(${WAYLAND_INCLUDE_DIR}) 37 38# Search GLESv1 39find_package(GLES1) 40if (GLES1_FOUND) 41 set(DEQP_SUPPORT_GLES1 ON) 42 set(DEQP_GLES1_LIBRARIES ${GLES1_LIBRARIES}) 43 include_directories(${GLES1_INCLUDE_DIR}) 44endif () 45