diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 3f61d56a7..5c21835d0 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -230,3 +230,11 @@ import_external_library(libbcrypt STATIC CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} INSTALL_COMMAND true) + +# Setup mgclient +import_external_library(mgclient STATIC + ${CMAKE_CURRENT_SOURCE_DIR}/mgclient/lib/libmgclient.a + ${CMAKE_CURRENT_SOURCE_DIR}/mgclient/include + CMAKE_ARGS -DBUILD_TESTING=OFF) +find_package(OpenSSL REQUIRED) +target_link_libraries(mgclient INTERFACE ${OPENSSL_LIBRARIES}) diff --git a/libs/setup.sh b/libs/setup.sh index 9ab379319..4ff35dfd5 100755 --- a/libs/setup.sh +++ b/libs/setup.sh @@ -140,3 +140,8 @@ sed -i 's/TARGETS ${ROCKSDB_SHARED_LIB}/TARGETS ${ROCKSDB_SHARED_LIB} OPTIONAL/' kafka_tag="c319b4e987d0bc4fe4f01cf91419d90b62061655" # Mar 8, 2018 # git clone https://github.com/edenhill/librdkafka.git clone git://deps.memgraph.io/librdkafka.git librdkafka $kafka_tag + +# mgclient +mgclient_tag="fe94b3631385ef5dbe40a3d8458860dbcc33e6ea" # May 27, 2019 +# git clone https://github.com/memgraph/mgclient.git +clone git://deps.memgraph.io/mgclient.git mgclient $mgclient_tag