FindOpenGL: Add support for GLVND on Linux

Find GLVND components if available.  Add `GLX` and `EGL` options for
COMPONENTS that allow requesting these libraries explicitly.  Introduce
new import targets for these windowing-system-specific libraries.

On a GLVND system, populate the legacy `OPENGL_LIBRARIES` variable and
the `OpenGL::GL` target using the `OpenGL` and `GLX` components.  On
non-GLVND systems, continue to use the legacy `GL` library and simply do
not provide the GLVND components.  Application code can choose to adapt
based on the availability of GLVND components as imported targets.
This commit is contained in:
Tom Fogal
2017-06-08 18:02:42 -07:00
committed by Brad King
parent eae3765b67
commit e2e8a690cd
5 changed files with 353 additions and 44 deletions

View File

@@ -0,0 +1,4 @@
FindOpenGL-glvnd
----------------
* The :module:`FindOpenGL` module gained support for GLVND on Linux.