2017-10-25 21:28:10 +08:00
|
|
|
add_executable(mg_import_csv
|
|
|
|
mg_import_csv/main.cpp
|
|
|
|
# This is just friggin terrible. mg_import_csv needs to depend almost on
|
2017-09-22 19:46:06 +08:00
|
|
|
# the whole memgraph, just to use TypedValue and BaseEncoder.
|
2017-11-15 16:28:41 +08:00
|
|
|
${memgraph_src_dir}/communication/bolt/v1/decoder/decoded_value.cpp
|
2017-09-22 19:46:06 +08:00
|
|
|
${memgraph_src_dir}/data_structures/concurrent/skiplist_gc.cpp
|
|
|
|
${memgraph_src_dir}/database/graph_db_accessor.cpp
|
2017-12-01 17:42:53 +08:00
|
|
|
${memgraph_src_dir}/durability/paths.cpp
|
2017-10-25 21:28:10 +08:00
|
|
|
${memgraph_src_dir}/durability/snapshooter.cpp
|
2017-11-13 16:50:49 +08:00
|
|
|
${memgraph_src_dir}/durability/wal.cpp
|
2017-09-22 19:46:06 +08:00
|
|
|
${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
|
2017-11-29 23:03:42 +08:00
|
|
|
${memgraph_src_dir}/transactions/engine_master.cpp
|
|
|
|
${memgraph_src_dir}/transactions/engine_worker.cpp
|
2017-09-22 19:46:06 +08:00
|
|
|
)
|
|
|
|
|
2017-10-06 17:08:36 +08:00
|
|
|
# Strip the executable in release build.
|
|
|
|
string(TOLOWER ${CMAKE_BUILD_TYPE} lower_build_type)
|
|
|
|
if (lower_build_type STREQUAL "release")
|
2017-10-25 21:28:10 +08:00
|
|
|
add_custom_command(TARGET mg_import_csv POST_BUILD
|
|
|
|
COMMAND strip -s mg_import_csv
|
|
|
|
COMMENT Stripping symbols and sections from mg_import_csv)
|
2017-10-06 17:08:36 +08:00
|
|
|
endif()
|
|
|
|
|
2017-10-25 21:28:10 +08:00
|
|
|
target_link_libraries(mg_import_csv stdc++fs Threads::Threads fmt
|
2017-10-03 19:56:41 +08:00
|
|
|
gflags glog cppitertools)
|
2017-10-25 21:28:10 +08:00
|
|
|
install(TARGETS mg_import_csv
|
2017-09-22 19:46:06 +08:00
|
|
|
RUNTIME DESTINATION .)
|