Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
c0f0f233
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
694
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c0f0f233
编写于
1月 16, 2018
作者:
L
Luo Tao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add WITH_FLUID option and third party INSTALL for fluid api
上级
984d09c8
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
12 addition
and
5 deletion
+12
-5
CMakeLists.txt
CMakeLists.txt
+1
-0
cmake/external/eigen.cmake
cmake/external/eigen.cmake
+8
-2
cmake/external/gflags.cmake
cmake/external/gflags.cmake
+1
-1
cmake/external/glog.cmake
cmake/external/glog.cmake
+1
-1
cmake/external/protobuf.cmake
cmake/external/protobuf.cmake
+1
-1
未找到文件。
CMakeLists.txt
浏览文件 @
c0f0f233
...
@@ -55,6 +55,7 @@ option(WITH_COVERAGE "Compile PaddlePaddle with code coverage" OFF)
...
@@ -55,6 +55,7 @@ option(WITH_COVERAGE "Compile PaddlePaddle with code coverage" OFF)
option
(
COVERALLS_UPLOAD
"Package code coverage data to coveralls"
OFF
)
option
(
COVERALLS_UPLOAD
"Package code coverage data to coveralls"
OFF
)
option
(
ON_TRAVIS
"Exclude special unit test on Travis CI"
OFF
)
option
(
ON_TRAVIS
"Exclude special unit test on Travis CI"
OFF
)
option
(
WITH_C_API
"Compile PaddlePaddle with C-API(Prediction)"
OFF
)
option
(
WITH_C_API
"Compile PaddlePaddle with C-API(Prediction)"
OFF
)
option
(
WITH_FLUID
"Compile PaddlePaddle fluid only"
ON
)
option
(
WITH_GOLANG
"Compile PaddlePaddle with GOLANG"
OFF
)
option
(
WITH_GOLANG
"Compile PaddlePaddle with GOLANG"
OFF
)
option
(
GLIDE_INSTALL
"Download and install go dependencies "
ON
)
option
(
GLIDE_INSTALL
"Download and install go dependencies "
ON
)
option
(
USE_NNPACK
"Compile PaddlePaddle with NNPACK library"
OFF
)
option
(
USE_NNPACK
"Compile PaddlePaddle with NNPACK library"
OFF
)
...
...
cmake/external/eigen.cmake
浏览文件 @
c0f0f233
INCLUDE
(
ExternalProject
)
INCLUDE
(
ExternalProject
)
SET
(
EIGEN_SOURCE_DIR
${
THIRD_PARTY_PATH
}
/eigen3
)
SET
(
EIGEN_SOURCE_DIR
${
THIRD_PARTY_PATH
}
/eigen3
)
SET
(
EIGEN_INCLUDE_DIR
${
EIGEN_SOURCE_DIR
}
/src/extern_eigen3
)
INCLUDE_DIRECTORIES
(
${
EIGEN_
SOURCE_DIR
}
/src/extern_eigen3
)
INCLUDE_DIRECTORIES
(
${
EIGEN_
INCLUDE_DIR
}
)
ExternalProject_Add
(
ExternalProject_Add
(
extern_eigen3
extern_eigen3
...
@@ -28,3 +28,9 @@ endif()
...
@@ -28,3 +28,9 @@ endif()
add_dependencies
(
eigen3 extern_eigen3
)
add_dependencies
(
eigen3 extern_eigen3
)
LIST
(
APPEND external_project_dependencies eigen3
)
LIST
(
APPEND external_project_dependencies eigen3
)
IF
(
NOT WITH_C_API AND WITH_FLUID
)
INSTALL
(
FILES
${
EIGEN_INCLUDE_DIR
}
/Eigen/Core DESTINATION third_party/eigen3/Eigen
)
INSTALL
(
DIRECTORY
${
EIGEN_INCLUDE_DIR
}
/Eigen/src DESTINATION third_party/eigen3/Eigen
)
INSTALL
(
DIRECTORY
${
EIGEN_INCLUDE_DIR
}
/unsupported/Eigen DESTINATION third_party/eigen3/unsupported
)
ENDIF
()
cmake/external/gflags.cmake
浏览文件 @
c0f0f233
...
@@ -52,7 +52,7 @@ ADD_DEPENDENCIES(gflags extern_gflags)
...
@@ -52,7 +52,7 @@ ADD_DEPENDENCIES(gflags extern_gflags)
LIST
(
APPEND external_project_dependencies gflags
)
LIST
(
APPEND external_project_dependencies gflags
)
IF
(
WITH_C_API
)
IF
(
WITH_C_API
OR WITH_FLUID
)
INSTALL
(
DIRECTORY
${
GFLAGS_INCLUDE_DIR
}
DESTINATION third_party/gflags
)
INSTALL
(
DIRECTORY
${
GFLAGS_INCLUDE_DIR
}
DESTINATION third_party/gflags
)
IF
(
ANDROID
)
IF
(
ANDROID
)
INSTALL
(
FILES
${
GFLAGS_LIBRARIES
}
DESTINATION third_party/gflags/lib/
${
ANDROID_ABI
}
)
INSTALL
(
FILES
${
GFLAGS_LIBRARIES
}
DESTINATION third_party/gflags/lib/
${
ANDROID_ABI
}
)
...
...
cmake/external/glog.cmake
浏览文件 @
c0f0f233
...
@@ -68,7 +68,7 @@ LINK_LIBRARIES(glog gflags)
...
@@ -68,7 +68,7 @@ LINK_LIBRARIES(glog gflags)
LIST
(
APPEND external_project_dependencies glog
)
LIST
(
APPEND external_project_dependencies glog
)
IF
(
WITH_C_API
)
IF
(
WITH_C_API
OR WITH_FLUID
)
INSTALL
(
DIRECTORY
${
GLOG_INCLUDE_DIR
}
DESTINATION third_party/glog
)
INSTALL
(
DIRECTORY
${
GLOG_INCLUDE_DIR
}
DESTINATION third_party/glog
)
IF
(
ANDROID
)
IF
(
ANDROID
)
INSTALL
(
FILES
${
GLOG_LIBRARIES
}
DESTINATION third_party/glog/lib/
${
ANDROID_ABI
}
)
INSTALL
(
FILES
${
GLOG_LIBRARIES
}
DESTINATION third_party/glog/lib/
${
ANDROID_ABI
}
)
...
...
cmake/external/protobuf.cmake
浏览文件 @
c0f0f233
...
@@ -250,7 +250,7 @@ IF(NOT PROTOBUF_FOUND)
...
@@ -250,7 +250,7 @@ IF(NOT PROTOBUF_FOUND)
SET
(
PROTOBUF_PROTOC_LIBRARY
${
extern_protobuf_PROTOC_LIBRARY
}
SET
(
PROTOBUF_PROTOC_LIBRARY
${
extern_protobuf_PROTOC_LIBRARY
}
CACHE FILEPATH
"protoc library."
FORCE
)
CACHE FILEPATH
"protoc library."
FORCE
)
IF
(
WITH_C_API
)
IF
(
WITH_C_API
OR WITH_FLUID
)
INSTALL
(
DIRECTORY
${
PROTOBUF_INCLUDE_DIR
}
DESTINATION third_party/protobuf
)
INSTALL
(
DIRECTORY
${
PROTOBUF_INCLUDE_DIR
}
DESTINATION third_party/protobuf
)
IF
(
ANDROID
)
IF
(
ANDROID
)
INSTALL
(
FILES
${
PROTOBUF_LITE_LIBRARY
}
DESTINATION third_party/protobuf/lib/
${
ANDROID_ABI
}
)
INSTALL
(
FILES
${
PROTOBUF_LITE_LIBRARY
}
DESTINATION third_party/protobuf/lib/
${
ANDROID_ABI
}
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录