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}