Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
abcd274f
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
185
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
abcd274f
编写于
8月 02, 2019
作者:
W
wangguibao
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into ctr_model_serving
上级
628c8786
735304c8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
10 deletion
+6
-10
cmake/external/jsoncpp.cmake
cmake/external/jsoncpp.cmake
+3
-1
cube/cube-builder/CMakeLists.txt
cube/cube-builder/CMakeLists.txt
+3
-9
未找到文件。
cmake/external/jsoncpp.cmake
浏览文件 @
abcd274f
...
...
@@ -17,7 +17,7 @@ INCLUDE(ExternalProject)
SET
(
JSONCPP_SOURCES_DIR
${
THIRD_PARTY_PATH
}
/jsoncpp
)
SET
(
JSONCPP_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/jsoncpp
)
SET
(
JSONCPP_INCLUDE_DIR
"
${
JSONCPP_INSTALL_DIR
}
/include"
CACHE PATH
"jsoncpp include directory."
FORCE
)
SET
(
JSONCPP_LIBRARIES
"
${
JSONCPP_INSTALL_DIR
}
/lib"
CACHE FILEPATH
"jsoncpp library."
FORCE
)
SET
(
JSONCPP_LIBRARIES
"
${
JSONCPP_INSTALL_DIR
}
/lib
/libjsoncpp.a
"
CACHE FILEPATH
"jsoncpp library."
FORCE
)
INCLUDE_DIRECTORIES
(
${
JSONCPP_INCLUDE_DIR
}
)
ExternalProject_Add
(
...
...
@@ -36,10 +36,12 @@ ExternalProject_Add(
-DCMAKE_C_FLAGS_DEBUG=
${
CMAKE_C_FLAGS_DEBUG
}
-DCMAKE_C_FLAGS_RELEASE=
${
CMAKE_C_FLAGS_RELEASE
}
-DCMAKE_INSTALL_PREFIX=
${
JSONCPP_INSTALL_DIR
}
-DCMAKE_INSTALL_LIBDIR=
${
JSONCPP_INSTALL_DIR
}
/lib
-DBUILD_TESTING=OFF
-DCMAKE_BUILD_TYPE=
${
THIRD_PARTY_BUILD_TYPE
}
${
EXTERNAL_OPTIONAL_ARGS
}
CMAKE_CACHE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=
${
JSONCPP_INSTALL_DIR
}
-DCMAKE_INSTALL_LIBDIR=:PATH=
${
JSONCPP_INSTALL_DIR
}
/lib
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
-DCMAKE_BUILD_TYPE:STRING=
${
THIRD_PARTY_BUILD_TYPE
}
)
...
...
cube/cube-builder/CMakeLists.txt
浏览文件 @
abcd274f
...
...
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License
project
(
cube-builder
)
set
(
CMAKE_CXX_STANDARD 11
)
add_compile_options
(
-std=c++11
)
...
...
@@ -22,12 +20,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories
(
SYSTEM
${
CMAKE_CURRENT_LIST_DIR
}
/include
)
include_directories
(
SYSTEM
${
CMAKE_CURRENT_BINARY_DIR
}
/../
)
find_path
(
JSONCPP_INCLUDE_DIR json/json.h
)
set
(
JSONCPP_LIBRARY
${
JSONCPP_INCLUDE_DIR
}
/../lib/libjsoncpp.a
)
message
(
STATUS
"jsoncpp include:
${
JSONCPP_INCLUDE_DIR
}
"
)
include_directories
(
${
JSONCPP_INCLUDE_DIR
}
)
find_library
(
CURL_LIB NAMES curl
)
if
(
NOT CURL_LIB
)
message
(
FATAL_ERROR
"Fail to find curl"
)
...
...
@@ -35,9 +27,11 @@ endif()
add_executable
(
cube-builder src/main.cpp include/cube-builder/util.h src/util.cpp src/builder_job.cpp include/cube-builder/builder_job.h include/cube-builder/define.h src/seqfile_reader.cpp include/cube-builder/seqfile_reader.h include/cube-builder/raw_reader.h include/cube-builder/vtext.h src/crovl_builder_increment.cpp include/cube-builder/crovl_builder_increment.h src/curl_simple.cpp include/cube-builder/curl_simple.h
)
add_dependencies
(
cube-builder jsoncpp
)
set
(
DYNAMIC_LIB
gflags
${
JSONCPP_LIBRARY
}
jsoncpp
-lssl
-lcrypto
${
CURL_LIB
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录