2012-04-25 06:57:21 +02:00
|
|
|
# Find EGL
|
|
|
|
#
|
|
|
|
# EGL_INCLUDE_DIR
|
|
|
|
# EGL_LIBRARY
|
|
|
|
# EGL_FOUND
|
|
|
|
|
2014-10-12 17:58:48 +02:00
|
|
|
find_path(EGL_INCLUDE_DIR NAMES EGL/egl.h PATHS /opt/vc/include)
|
2012-04-25 06:57:21 +02:00
|
|
|
|
2015-07-18 12:54:59 +02:00
|
|
|
set(EGL_NAMES ${EGL_NAMES} egl EGL libEGL)
|
2014-10-12 17:58:48 +02:00
|
|
|
find_library(EGL_LIBRARY NAMES ${EGL_NAMES} PATHS /opt/vc/lib)
|
2012-04-25 06:57:21 +02:00
|
|
|
|
2012-07-19 22:14:08 +02:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
|
|
|
|
|
|
|
|
mark_as_advanced(EGL_INCLUDE_DIR EGL_LIBRARY)
|
2012-04-25 06:57:21 +02:00
|
|
|
|