01fd1a0390
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8830 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: a75c7c7d40c7ace67bc8a9e028407e5ce7a175a7 Former-commit-id: 813908b8a2a0bdd7a5a4ef84ce745e677ba48af9
21 lines
617 B
CMake
21 lines
617 B
CMake
# Locate GLM math (header-only) library
|
|
# This module defines
|
|
# GLM_FOUND :
|
|
# GLM_INCLUDE_DIR : where to find the headers
|
|
# Created by Joe Thompson
|
|
|
|
find_path(GLM_INCLUDE_DIR glm/glm.hpp)
|
|
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set GLM_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
include(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLM DEFAULT_MSG GLM_INCLUDE_DIR)
|
|
|
|
#if(GLM_FOUND)
|
|
set(GLM_LIBRARIES ${GLM_LIBRARY})
|
|
#endif()
|
|
# Set the old GLM_INCLUDE_DIRS variable for backwards compatibility
|
|
set(GLM_INCLUDE_DIRS ${GLM_INCLUDE_DIR})
|
|
|
|
mark_as_advanced(GLM_LIBRARY GLM_INCLUDE_DIR)
|