Skip to content
Snippets Groups Projects
Select Git revision
  • d7d264026900681c234a3394d3d587a01a192513
  • master default protected
  • noelp-master-patch-87404
  • disable-view
  • experimental_rel
  • test_quiggeldy_service
  • update-arbor-0.10.0
  • image_build
  • spack_v0.22.1
  • ebrains-24-04
  • update-readme
  • create-module-file
  • add-nestml-tests
  • feat_add_py-norse
  • update-libneuroml
  • update-bluebrain-packages
  • feat_arbor_install_all_binaries
  • ebrains-23.09-jsc-site-config
  • spack-v0.20.0
  • ebrains-23-09-spack-v0.19.2
  • ebrains-23-09
21 results

cppcompileaction-0.3.0.patch

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)