mirror of
https://github.com/google/leveldb.git
synced 2026-08-18 10:33:27 +08:00
Added google/benchmark submodule.
This commit is contained in:
@@ -298,6 +298,8 @@ if(LEVELDB_BUILD_TESTS)
|
||||
# This project is tested using GoogleTest.
|
||||
add_subdirectory("third_party/googletest")
|
||||
|
||||
add_subdirectory("third_party/benchmark")
|
||||
|
||||
# GoogleTest triggers a missing field initializers warning.
|
||||
if(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
||||
set_property(TARGET gtest
|
||||
@@ -318,7 +320,7 @@ if(LEVELDB_BUILD_TESTS)
|
||||
|
||||
"${test_file}"
|
||||
)
|
||||
target_link_libraries("${test_target_name}" leveldb gmock gtest)
|
||||
target_link_libraries("${test_target_name}" leveldb gmock gtest benchmark)
|
||||
target_compile_definitions("${test_target_name}"
|
||||
PRIVATE
|
||||
${LEVELDB_PLATFORM_NAME}=1
|
||||
|
||||
Reference in New Issue
Block a user