From ed47568b4ac283b33920587990c73aa4441d7147 Mon Sep 17 00:00:00 2001 From: jinhai Date: Sun, 14 Apr 2019 19:59:17 +0800 Subject: [PATCH] Update README.md Former-commit-id: 0cdea6bc8b1d3b8e7b7aa2753e111a9b229f757d --- cpp/README.md | 10 ++++++++++ cpp/src/CMakeLists.txt | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cpp/README.md b/cpp/README.md index e69de29bb2..cdb01de4a9 100644 --- a/cpp/README.md +++ b/cpp/README.md @@ -0,0 +1,10 @@ +# Compilation +##### Step 1, build the third_party library: +./third_party/build.sh + +##### step2, build vecwise engine: +mkdir build && cd build && cmake .. && make -j + +##### step3, get the library and server: +build/src/vecwise_engine_server is the server +build/src/libvecwise_engine.a is the static library \ No newline at end of file diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index 8dcff3def4..3ab957c9dd 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -14,7 +14,7 @@ set(vecwise_engine_src ${cache_files} ) -add_library(vecwise_engine SHARED ${vecwise_engine_src}) +add_library(vecwise_engine STATIC ${vecwise_engine_src}) add_executable(vecwise_engine_server ${config_files}