Buckets:
| # Locate OpenGL | |
| # This module defines: | |
| # OPENGL_FOUND - system has OpenGL | |
| # OPENGL_XMESA_FOUND - system has XMESA | |
| # OPENGL_GLU_FOUND - system has GLU | |
| # OPENGL_INCLUDE_DIR - the GL include directory | |
| # OPENGL_LIBRARIES - Link these to use OpenGL and GLU | |
| # OPENGL_gl_LIBRARY - Path to OpenGL Library | |
| # OPENGL_glu_LIBRARY - Path to GLU Library | |
| # The implementation is based on the standard FindOpenGL.cmake provided with CMake, | |
| # but customized for targeting Emscripten only. | |
| # These libraries are provided with Emscripten | |
| SET(OPENGL_FOUND TRUE) | |
| SET(OPENGL_GLU_FOUND TRUE) | |
| # Doesn't look like this one is part of Emscripten | |
| SET(OPENGL_XMESA_FOUND FALSE) | |
| # This is the path where <GL/gl.h> is found | |
| SET(OPENGL_INCLUDE_DIR "${EMSCRIPTEN_SYSROOT}/include") | |
| SET(OPENGL_gl_LIBRARY "GL") | |
| SET(OPENGL_glu_LIBRARY "GLU") | |
| SET(OPENGL_LIBRARIES ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}) | |
| mark_as_advanced( | |
| OPENGL_INCLUDE_DIR | |
| OPENGL_glu_LIBRARY | |
| OPENGL_gl_LIBRARY | |
| ) | |
| if (NOT TARGET OpenGL::GL) | |
| add_library(OpenGL::GL INTERFACE IMPORTED) | |
| set_target_properties(OpenGL::GL PROPERTIES | |
| IMPORTED_LIBNAME "${OPENGL_gl_LIBRARY}" | |
| INTERFACE_INCLUDE_DIRECTORIES "${OPENGL_INCLUDE_DIR}" | |
| ) | |
| endif() | |
| if (NOT TARGET OpenGL::GLU) | |
| add_library(OpenGL::GLU INTERFACE IMPORTED) | |
| set_target_properties(OpenGL::GLU PROPERTIES | |
| IMPORTED_LIBNAME "${OPENGL_glu_LIBRARY}" | |
| INTERFACE_LINK_LIBRARIES OpenGL::GL | |
| ) | |
| endif() | |
Xet Storage Details
- Size:
- 1.42 kB
- Xet hash:
- 8431d044c8b22b83a3888e930e482a884ac5387de373868e39a4794a12c0adf3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.