memgraph/tools/src/CMakeLists.txt

18 lines
619 B
CMake
Raw Normal View History

# Generate a version.hpp file
set(VERSION_STRING ${MEMGRAPH_VERSION})
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)
# Memgraph Dump Target
add_executable(mg_dump mg_dump/main.cpp)
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)
install(TARGETS mg_dump RUNTIME DESTINATION bin)
# Target for building all the tool executables.
add_custom_target(tools DEPENDS mg_dump)