memgraph/tools/src/CMakeLists.txt

29 lines
1.2 KiB
CMake
Raw Normal View History

add_executable(mg_import_csv
mg_import_csv/main.cpp
# This is just friggin terrible. mg_import_csv needs to depend almost on
# the whole memgraph, just to use TypedValue and BaseEncoder.
${memgraph_src_dir}/data_structures/concurrent/skiplist_gc.cpp
${memgraph_src_dir}/database/graph_db_accessor.cpp
${memgraph_src_dir}/durability/snapshooter.cpp
${memgraph_src_dir}/query/typed_value.cpp
${memgraph_src_dir}/storage/edge_accessor.cpp
${memgraph_src_dir}/storage/locking/record_lock.cpp
${memgraph_src_dir}/storage/property_value.cpp
${memgraph_src_dir}/storage/record_accessor.cpp
${memgraph_src_dir}/storage/vertex_accessor.cpp
${memgraph_src_dir}/transactions/transaction.cpp
)
# Strip the executable in release build.
string(TOLOWER ${CMAKE_BUILD_TYPE} lower_build_type)
if (lower_build_type STREQUAL "release")
add_custom_command(TARGET mg_import_csv POST_BUILD
COMMAND strip -s mg_import_csv
COMMENT Stripping symbols and sections from mg_import_csv)
endif()
target_link_libraries(mg_import_csv stdc++fs Threads::Threads fmt
gflags glog cppitertools)
install(TARGETS mg_import_csv
RUNTIME DESTINATION .)