PageRenderTime 38ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/cmake/FindGLH.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 30 lines | 19 code | 5 blank | 6 comment | 6 complexity | cfb33f25aecfe2b0bd21afb5b9fd03b7 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. # - Find GLH
  3. # Find the Graphic Library Helper includes.
  4. # This module defines
  5. # GLH_INCLUDE_DIR, where to find glh/glh_linear.h.
  6. # GLH_FOUND, If false, do not try to use GLH.
  7. find_path(GLH_INCLUDE_DIR glh/glh_linear.h
  8. NO_SYSTEM_ENVIRONMENT_PATH
  9. )
  10. if (GLH_INCLUDE_DIR)
  11. set(GLH_FOUND "YES")
  12. else (GLH_INCLUDE_DIR)
  13. set(GLH_FOUND "NO")
  14. endif (GLH_INCLUDE_DIR)
  15. if (GLH_FOUND)
  16. if (NOT GLH_FIND_QUIETLY)
  17. message(STATUS "Found GLH: ${GLH_INCLUDE_DIR}")
  18. set(GLH_FIND_QUIETLY TRUE) # Only alert us the first time
  19. endif (NOT GLH_FIND_QUIETLY)
  20. else (GLH_FOUND)
  21. if (GLH_FIND_REQUIRED)
  22. message(FATAL_ERROR "Could not find GLH")
  23. endif (GLH_FIND_REQUIRED)
  24. endif (GLH_FOUND)
  25. mark_as_advanced(GLH_INCLUDE_DIR)