FindOpenGL.cmake 675 B

12345678910111213141516171819202122232425262728
  1. #
  2. # try to find OpenGL on UNIX systems once done this will define
  3. #
  4. # OPENGL_INCLUDE_PATH = where the GL include directory can be found
  5. # OPENGL_LIB_PATH = where the GL library can be found
  6. # OPENGL_LIBRARY = the name of the OpenGL library to link with
  7. #
  8. IF (WIN32)
  9. SET (OPENGL_LIBRARY opengl32 CACHE STRING "OpenGL library for win32")
  10. ELSE (WIN32)
  11. FIND_PATH(OPENGL_INCLUDE_PATH GL/gl.h
  12. /usr/include
  13. /usr/local/include
  14. /usr/openwin/share/include
  15. /opt/graphics/OpenGL/include
  16. /usr/X11R6/include
  17. )
  18. FIND_LIBRARY(OPENGL_LIBRARY GL
  19. /usr/lib
  20. /usr/local/lib
  21. /opt/graphics/OpenGL/lib
  22. /usr/openwin/lib
  23. /usr/X11R6/lib
  24. )
  25. ENDIF (WIN32)