Skip to content
Snippets Groups Projects
Select Git revision
  • 349abe7e0132111737153bf2d4b1692d091b5ea8
  • master default protected
  • github/fork/hrani/master
  • github/fork/dilawar/master
  • chamcham
  • chhennapoda
  • wheel
  • 3.2.0-pre0
  • v3.1.3
  • 3.1.2
  • 3.1.1
  • chamcham-3.1.1
  • 3.1.0
  • ghevar_3.0.2_pre2
  • ghevar_3.0.2
15 results

traub_naf.py

Blame
  • FindGLM.cmake 1.14 KiB
    #
    # Find GLM
    #
    # Try to find GLM : OpenGL Mathematics.
    # This module defines 
    # - GLM_INCLUDE_DIRS
    # - GLM_FOUND
    #
    # The following variables can be set as arguments for the module.
    # - GLM_ROOT_DIR : Root library directory of GLM 
    #
    # References:
    # - https://github.com/Groovounet/glm/blob/master/util/FindGLM.cmake
    # - https://bitbucket.org/alfonse/gltut/src/28636298c1c0/glm-0.9.0.7/FindGLM.cmake
    #
    
    # Additional modules
    include(FindPackageHandleStandardArgs)
    
    if (WIN32)
    	# Find include files
    	find_path(
    		GLM_INCLUDE_DIR
    		NAMES glm/glm.hpp
    		PATHS
    		$ENV{PROGRAMFILES}/include
    		${GLM_ROOT_DIR}/include
    		DOC "The directory where glm/glm.hpp resides")
    else()
    	# Find include files
    	find_path(
    		GLM_INCLUDE_DIR
    		NAMES glm/glm.hpp
    		PATHS
    		/usr/include
    		/usr/local/include
    		/sw/include
    		/opt/local/include
    		${GLM_ROOT_DIR}/include
    		DOC "The directory where glm/glm.hpp resides")
    endif()
    
    # Handle REQUIRD argument, define *_FOUND variable
    find_package_handle_standard_args(GLM DEFAULT_MSG GLM_INCLUDE_DIR)
    
    # Define GLM_INCLUDE_DIRS
    if (GLM_FOUND)
    	set(GLM_INCLUDE_DIRS ${GLM_INCLUDE_DIR})
    endif()
    
    # Hide some variables
    mark_as_advanced(GLM_INCLUDE_DIR)