FindGLU.cmake 649 B

12345678910111213141516171819202122232425262728
  1. #
  2. # try to find GLU on UNIX systems once done this will define
  3. #
  4. # GLU_INCLUDE_PATH = where the GLU include directory can be found
  5. # GLU_LIB_PATH = where the GLU library can be found
  6. # GLU_LIBRARY = the name of the GLU library to link with
  7. #
  8. IF (WIN32)
  9. SET (GLU_LIBRARY glu32 CACHE STRING "GLU library for win32")
  10. ELSE (WIN32)
  11. FIND_PATH(GLU_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(GLU_LIBRARY GLU
  19. /usr/lib
  20. /usr/local/lib
  21. /opt/graphics/OpenGL/lib
  22. /usr/openwin/lib
  23. /usr/X11R6/lib
  24. )
  25. ENDIF (WIN32)