File: FindEGL.cmake

package info (click to toggle)
cegui-mk2 0.8.7%2Bgit20220615-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 57,824 kB
  • sloc: cpp: 306,263; python: 1,175; ansic: 812; sh: 616; xml: 191; java: 162; makefile: 21
file content (23 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Try to find EGL library and include dir.
# Once done this will define
#
# EGL_FOUND        - true if EGL has been found
# EGL_INCLUDE_DIR  - where the EGL/egl.h and KHR/khrplatform.h can be found
# EGL_LIBRARIES    - link this to use libEGL.so.1

include(FindPackageHandleStandardArgs)

find_path(EGL_H_PATH NAMES EGL/egl.h)
find_library(EGL_LIB NAMES EGL)
mark_as_advanced(EGL_H_PATH EGL_LIB)

cegui_find_package_handle_standard_args(EGL EGL_LIB EGL_H_PATH)

if (EGL_FOUND)
    set (EGL_INCLUDE_DIR ${EGL_H_PATH})
    set (EGL_LIBRARIES ${EGL_LIB})
else()
    set (EGL_INCLUDE_DIR)
    set (EGL_LIBRARIES)
endif()