2018-10-15 21:03:16 +08:00
|
|
|
# Generate a version.hpp file
|
2020-02-11 23:39:54 +08:00
|
|
|
set(VERSION_STRING ${MEMGRAPH_VERSION})
|
2018-10-15 21:03:16 +08:00
|
|
|
configure_file(../../src/version.hpp.in version.hpp @ONLY)
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2022-01-21 17:22:36 +08:00
|
|
|
find_package(gflags REQUIRED)
|
|
|
|
find_package(fmt REQUIRED)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
2019-05-27 21:33:03 +08:00
|
|
|
# Memgraph Dump Target
|
|
|
|
add_executable(mg_dump mg_dump/main.cpp)
|
2019-06-11 22:19:06 +08:00
|
|
|
target_include_directories(mg_dump PRIVATE ${MGCLIENT_INCLUDE_DIR})
|
2022-01-21 17:22:36 +08:00
|
|
|
target_link_libraries(mg_dump gflags spdlog fmt::fmt mgclient Threads::Threads)
|
2021-05-26 17:59:36 +08:00
|
|
|
install(TARGETS mg_dump RUNTIME DESTINATION bin)
|
2017-12-04 20:56:17 +08:00
|
|
|
|
|
|
|
# Target for building all the tool executables.
|
2021-05-26 17:59:36 +08:00
|
|
|
add_custom_target(tools DEPENDS mg_dump)
|