Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
活在明天
openpose
提交
d8ac8438
O
openpose
项目概览
活在明天
/
openpose
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openpose
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d8ac8438
编写于
12月 17, 2018
作者:
H
henczati
提交者:
Gines
12月 17, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added find_package for OpenGL in CMake (#771)
上级
3caf642d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
3 deletion
+5
-3
CMakeLists.txt
CMakeLists.txt
+5
-3
未找到文件。
CMakeLists.txt
浏览文件 @
d8ac8438
...
@@ -386,6 +386,8 @@ if (UNIX OR APPLE)
...
@@ -386,6 +386,8 @@ if (UNIX OR APPLE)
# 3D
# 3D
if
(
WITH_3D_RENDERER
)
if
(
WITH_3D_RENDERER
)
# OpenGL
find_package
(
OpenGL REQUIRED
)
# GLUT
# GLUT
find_package
(
GLUT REQUIRED
)
find_package
(
GLUT REQUIRED
)
endif
(
WITH_3D_RENDERER
)
endif
(
WITH_3D_RENDERER
)
...
@@ -404,7 +406,7 @@ if (UNIX OR APPLE)
...
@@ -404,7 +406,7 @@ if (UNIX OR APPLE)
if
(
WITH_3D_ADAM_MODEL
)
if
(
WITH_3D_ADAM_MODEL
)
if
(
NOT WITH_3D_RENDERER
)
if
(
NOT WITH_3D_RENDERER
)
message
(
FATAL_ERROR
"WITH_3D_RENDERER is required if WITH_3D_ADAM_MODEL is enabled."
)
message
(
FATAL_ERROR
"WITH_3D_RENDERER is required if WITH_3D_ADAM_MODEL is enabled."
)
endif
(
WITH_3D_RENDERER
)
endif
(
NOT
WITH_3D_RENDERER
)
find_package
(
PkgConfig
)
find_package
(
PkgConfig
)
pkg_check_modules
(
EIGEN3 REQUIRED eigen3
)
pkg_check_modules
(
EIGEN3 REQUIRED eigen3
)
# Others: sudo apt-get install libglm-dev
# Others: sudo apt-get install libglm-dev
...
@@ -816,7 +818,7 @@ if (WITH_3D_ADAM_MODEL)
...
@@ -816,7 +818,7 @@ if (WITH_3D_ADAM_MODEL)
include_directories
(
${
EIGEN3_INCLUDE_DIRS
}
)
include_directories
(
${
EIGEN3_INCLUDE_DIRS
}
)
include_directories
(
${
IGL_INCLUDE_DIRS
}
)
include_directories
(
${
IGL_INCLUDE_DIRS
}
)
include_directories
(
${
LIBIGL_INCLUDE_DIRS
}
)
include_directories
(
${
LIBIGL_INCLUDE_DIRS
}
)
include_directories
(
${
OPENGL_INCLUDE_DIR
S
}
${
GLUT_INCLUDE_DIRS
}
${
GLEW_INCLUDE_DIRS
}
)
include_directories
(
${
OPENGL_INCLUDE_DIR
}
${
GLUT_INCLUDE_DIRS
}
${
GLEW_INCLUDE_DIRS
}
)
endif
(
WITH_3D_ADAM_MODEL
)
endif
(
WITH_3D_ADAM_MODEL
)
# Windows includes
# Windows includes
if
(
WIN32
)
if
(
WIN32
)
...
@@ -861,7 +863,7 @@ if (WITH_3D_ADAM_MODEL)
...
@@ -861,7 +863,7 @@ if (WITH_3D_ADAM_MODEL)
${
OPENGL_LIBRARIES
}
${
GLUT_LIBRARY
}
${
GLEW_LIBRARY
}
${
FREE_IMAGE_LIBRARY
}
)
${
OPENGL_LIBRARIES
}
${
GLUT_LIBRARY
}
${
GLEW_LIBRARY
}
${
FREE_IMAGE_LIBRARY
}
)
endif
(
WITH_3D_ADAM_MODEL
)
endif
(
WITH_3D_ADAM_MODEL
)
if
(
WITH_3D_RENDERER
)
if
(
WITH_3D_RENDERER
)
set
(
OpenPose_3rdparty_libraries
${
OpenPose_3rdparty_libraries
}
${
GLUT_LIBRARY
}
)
set
(
OpenPose_3rdparty_libraries
${
OpenPose_3rdparty_libraries
}
${
OPENGL_LIBRARIES
}
${
GLUT_LIBRARY
}
)
endif
(
WITH_3D_RENDERER
)
endif
(
WITH_3D_RENDERER
)
if
(
WITH_CERES
)
if
(
WITH_CERES
)
set
(
OpenPose_3rdparty_libraries
${
OpenPose_3rdparty_libraries
}
${
CERES_LIBRARIES
}
)
set
(
OpenPose_3rdparty_libraries
${
OpenPose_3rdparty_libraries
}
${
CERES_LIBRARIES
}
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录