FindGLUT.cmake 680 B

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