summaryrefslogtreecommitdiff
path: root/tests/font/cmake/modules/FindEGL.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tests/font/cmake/modules/FindEGL.cmake')
-rw-r--r--tests/font/cmake/modules/FindEGL.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/font/cmake/modules/FindEGL.cmake b/tests/font/cmake/modules/FindEGL.cmake
new file mode 100644
index 0000000..6f502bd
--- /dev/null
+++ b/tests/font/cmake/modules/FindEGL.cmake
@@ -0,0 +1,15 @@
+# Find EGL
+#
+# EGL_INCLUDE_DIR
+# EGL_LIBRARY
+# EGL_FOUND
+
+find_path(EGL_INCLUDE_DIR NAMES EGL/egl.h)
+
+set(EGL_NAMES ${EGL_NAMES} egl EGL)
+find_library(EGL_LIBRARY NAMES ${EGL_NAMES})
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
+
+mark_as_advanced(EGL_INCLUDE_DIR EGL_LIBRARY)