File: Findglm.cmake

package info (click to toggle)
kodi-visualization-spectrum 3.4.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 792 kB
  • sloc: cpp: 939; xml: 74; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (27)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#.rst:
# Findglm
# ------------
# Finds the OpenGL Mathematics (GLM) as a header only C++ mathematics library.
#
# This will define the following variables:
#
# GLM_FOUND - system has OpenGLES
# GLM_INCLUDE_DIR - the OpenGLES include directory
#
# Note: Install was removed from GLM on version 0.9.9.6.

find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
  pkg_check_modules(PC_GLM glm QUIET)
endif()

find_path(GLM_INCLUDE_DIR glm.hpp
                          PATHS ${PC_GLM_INCLUDEDIR}
                          PATH_SUFFIXES glm)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(glm REQUIRED_VARS GLM_INCLUDE_DIR)

mark_as_advanced(GLM_INCLUDE_DIR)