mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 07:30:54 +00:00
2bb5fc1280
Summary: Add an option to explicitly disable building shared versions of the RocksDB libraries. The shared libraries cannot be built in cases where some dependencies are only available as static libraries. This allows still building RocksDB in these situations. Pull Request resolved: https://github.com/facebook/rocksdb/pull/6122 Differential Revision: D18920740 fbshipit-source-id: d24f66d93c68a1e65635e6e0b663bae62c903bca
22 lines
513 B
CMake
22 lines
513 B
CMake
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})
|
|
target_link_libraries(${exename}${ARTIFACT_SUFFIX} ${ROCKSDB_LIB})
|
|
list(APPEND tool_deps ${exename})
|
|
endforeach()
|
|
|
|
list(APPEND tool_deps)
|
|
|
|
add_custom_target(ldb_tests
|
|
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/ldb_tests.py
|
|
DEPENDS ldb)
|