FindGLEW.cmake 1.1 KB

123456789101112131415161718192021222324
  1. # - Try to find GLEW
  2. # Once done this will define
  3. #
  4. # GLEW_FOUND - system has GLEW
  5. # GLEW_INCLUDE_DIR - the GLEW include directory
  6. # GLEW_LIBRARY - Link these to use GLEW
  7. #
  8. FIND_PATH( GLEW_INCLUDE_DIR glew.h wglew.h
  9. PATHS /usr/local /usr c:/glew "C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK" "C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK" "${DEPENDENCY_FOLDER}"
  10. PATH_SUFFIXES include include/gl include/GL Include Include/gl Include/GL )
  11. FIND_LIBRARY( GLEW_LIBRARY
  12. NAMES glew32 glew GLEW
  13. PATHS /usr /usr/local c:/glew "C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK" "C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK" "${DEPENDENCY_FOLDER}"
  14. PATH_SUFFIXES lib Lib
  15. )
  16. IF (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)
  17. SET(GLEW_FOUND TRUE)
  18. SET( GLEW_LIBRARY_DIR ${GLEW_LIBRARY} )
  19. ELSE (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)
  20. SET( GLEW_FOUND FALSE )
  21. ENDIF (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)