PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms 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
 1# -*- cmake -*-
 2
 3# - Find GLH
 4# Find the Graphic Library Helper includes.
 5# This module defines
 6#  GLH_INCLUDE_DIR, where to find glh/glh_linear.h.
 7#  GLH_FOUND, If false, do not try to use GLH.
 8
 9find_path(GLH_INCLUDE_DIR glh/glh_linear.h
10    NO_SYSTEM_ENVIRONMENT_PATH
11    )
12
13if (GLH_INCLUDE_DIR)
14  set(GLH_FOUND "YES")
15else (GLH_INCLUDE_DIR)
16  set(GLH_FOUND "NO")
17endif (GLH_INCLUDE_DIR)
18
19if (GLH_FOUND)
20  if (NOT GLH_FIND_QUIETLY)
21    message(STATUS "Found GLH: ${GLH_INCLUDE_DIR}")
22    set(GLH_FIND_QUIETLY TRUE) # Only alert us the first time
23  endif (NOT GLH_FIND_QUIETLY)
24else (GLH_FOUND)
25  if (GLH_FIND_REQUIRED)
26    message(FATAL_ERROR "Could not find GLH")
27  endif (GLH_FIND_REQUIRED)
28endif (GLH_FOUND)
29
30mark_as_advanced(GLH_INCLUDE_DIR)