Add static linking

Former-commit-id: 95e2ccc0112a0cff1f1520c7ec8caee07be442d6
pull/191/head
jinhai 2019-05-06 22:11:02 +08:00
parent 59cdb21331
commit 9bf75e809a
1 changed files with 15 additions and 11 deletions

View File

@ -32,10 +32,14 @@ cuda_add_library(vecwise_engine STATIC ${vecwise_engine_src})
set(engine_libs
pthread
faiss
libfaiss.a
libgomp.a
libopenblas.a
libgfortran.a
libquadmath.a
cudart
cublas
sqlite3
libsqlite3.a
)
target_link_libraries(vecwise_engine ${engine_libs} ${cuda_library})
@ -50,17 +54,17 @@ add_executable(vecwise_server
set(server_libs
vecwise_engine
rocksdb
thrift
librocksdb.a
libthrift.a
pthread
yaml-cpp
boost_system
boost_filesystem
libyaml-cpp.a
libboost_system.a
libboost_filesystem.a
pthread
snappy
bz2
z
zstd
libsnappy.a
libbz2.a
libz.a
libzstd.a
)
target_link_libraries(vecwise_server ${server_libs})