2016-09-28 20:53:15 +02:00
|
|
|
set(TOOLS
|
|
|
|
sst_dump.cc
|
|
|
|
db_sanity_test.cc
|
|
|
|
write_stress.cc
|
|
|
|
ldb.cc
|
|
|
|
db_repl_stress.cc
|
|
|
|
dump/rocksdb_dump.cc
|
|
|
|
dump/rocksdb_undump.cc)
|
|
|
|
foreach(src ${TOOLS})
|
|
|
|
get_filename_component(exename ${src} NAME_WE)
|
|
|
|
add_executable(${exename}${ARTIFACT_SUFFIX}
|
|
|
|
${src})
|
2019-12-11 00:19:24 +01:00
|
|
|
target_link_libraries(${exename}${ARTIFACT_SUFFIX} ${ROCKSDB_LIB})
|
2016-09-28 20:53:15 +02:00
|
|
|
list(APPEND tool_deps ${exename})
|
|
|
|
endforeach()
|
2019-12-06 00:33:14 +01:00
|
|
|
|
2019-12-09 08:49:32 +01:00
|
|
|
list(APPEND tool_deps)
|
2019-12-06 00:33:14 +01:00
|
|
|
|
2016-09-28 20:53:15 +02:00
|
|
|
add_custom_target(ldb_tests
|
|
|
|
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/ldb_tests.py
|
|
|
|
DEPENDS ldb)
|