07204837ce
Summary: Tools were mistakenly using leaked (PUBLIC) dependencies from main lib. Pull Request resolved: https://github.com/facebook/rocksdb/pull/6790 Reviewed By: riversand963 Differential Revision: D21471551 fbshipit-source-id: ec43b92e231777e0fcf0f865444391af09d6963b
31 lines
837 B
CMake
31 lines
837 B
CMake
set(CORE_TOOLS
|
|
sst_dump.cc
|
|
ldb.cc)
|
|
foreach(src ${CORE_TOOLS})
|
|
get_filename_component(exename ${src} NAME_WE)
|
|
add_executable(${exename}${ARTIFACT_SUFFIX}
|
|
${src})
|
|
target_link_libraries(${exename}${ARTIFACT_SUFFIX} ${ROCKSDB_LIB})
|
|
list(APPEND core_tool_deps ${exename})
|
|
endforeach()
|
|
|
|
if(WITH_TOOLS)
|
|
set(TOOLS
|
|
db_sanity_test.cc
|
|
write_stress.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})
|
|
target_link_libraries(${exename}${ARTIFACT_SUFFIX} ${ROCKSDB_LIB} ${THIRDPARTY_LIBS})
|
|
list(APPEND tool_deps ${exename})
|
|
endforeach()
|
|
|
|
add_custom_target(ldb_tests
|
|
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/ldb_tests.py
|
|
DEPENDS ldb)
|
|
endif()
|