Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PointCloud
Glm
提交
5adff62c
G
Glm
项目概览
PointCloud
/
Glm
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Glm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5adff62c
编写于
9月 24, 2012
作者:
C
Christophe Riccio
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #19 from cneumann/master
Replacement FindGLM.cmake that follows cmake module guidelines a bit more
上级
c588e9fa
ed2f46f2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
60 addition
and
9 deletion
+60
-9
util/FindGLM.cmake
util/FindGLM.cmake
+60
-9
未找到文件。
util/FindGLM.cmake
浏览文件 @
5adff62c
if
(
NOT GLM_PACKAGE_DIR
)
message
(
"ERROR: GLM_PACKAGE_DIR requires to be set"
)
endif
(
NOT GLM_PACKAGE_DIR
)
# FindGLM - attempts to locate the glm matrix/vector library.
#
# This module defines the following variables (on success):
# GLM_INCLUDE_DIRS - where to find glm/glm.hpp
# GLM_FOUND - if the library was successfully located
#
# It is trying a few standard installation locations, but can be customized
# with the following variables:
# GLM_ROOT_DIR - root directory of a glm installation
# Headers are expected to be found in either:
# <GLM_ROOT_DIR>/glm/glm.hpp OR
# <GLM_ROOT_DIR>/include/glm/glm.hpp
# This variable can either be a cmake or environment
# variable. Note however that changing the value
# of the environment varible will NOT result in
# re-running the header search and therefore NOT
# adjust the variables set by this module.
set
(
GLM_INCLUDE_DIR
${
GLM_PACKAGE_DIR
}
)
set
(
GLM_LIBRARY_DIR
)
#=============================================================================
# Copyright 2012 Carsten Neumann
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
include_directories
(
${
GLM_INCLUDE_DIR
}
)
# default search dirs
SET
(
_glm_HEADER_SEARCH_DIRS
"/usr/include"
"/usr/local/include"
)
if
(
GLM_PACKAGE_DIR AND GLM_INCLUDE_DIR
)
set
(
GLM_FOUND
"YES"
)
endif
(
GLM_PACKAGE_DIR AND GLM_INCLUDE_DIR
)
# check environment variable
SET
(
_glm_ENV_ROOT_DIR
"$ENV{GLM_ROOT_DIR}"
)
IF
(
NOT GLM_ROOT_DIR AND _glm_ENV_ROOT_DIR
)
SET
(
GLM_ROOT_DIR
"
${
_glm_ENV_ROOT_DIR
}
"
)
ENDIF
(
NOT GLM_ROOT_DIR AND _glm_ENV_ROOT_DIR
)
# put user specified location at beginning of search
IF
(
GLM_ROOT_DIR
)
SET
(
_glm_HEADER_SEARCH_DIRS
"
${
GLM_ROOT_DIR
}
"
"
${
GLM_ROOT_DIR
}
/include"
${
_glm_HEADER_SEARCH_DIRS
}
)
ENDIF
(
GLM_ROOT_DIR
)
# locate header
FIND_PATH
(
GLM_INCLUDE_DIR
"glm/glm.hpp"
PATHS
${
_glm_HEADER_SEARCH_DIRS
}
)
INCLUDE
(
FindPackageHandleStandardArgs
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
GLM DEFAULT_MSG
GLM_INCLUDE_DIR
)
IF
(
GLM_FOUND
)
SET
(
GLM_INCLUDE_DIRS
"
${
GLM_INCLUDE_DIR
}
"
)
MESSAGE
(
STATUS
"GLM_INCLUDE_DIR =
${
GLM_INCLUDE_DIR
}
"
)
ENDIF
(
GLM_FOUND
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录