diff options
author | Chris Mumford <cmumford@chromium.org> | 2020-11-30 09:57:27 -0800 |
---|---|---|
committer | Chris Mumford <cmumford@chromium.org> | 2020-11-30 10:47:15 -0800 |
commit | 37d36c92f8622595aa791867775d2f4d82e45be7 (patch) | |
tree | 7c65ea4612a2f4ed4a9cc4fae5ca6e1527157e17 | |
parent | 2802398c94b3b5708f111dae58ac1b738613bbf8 (diff) | |
download | leveldb-37d36c92f8622595aa791867775d2f4d82e45be7.tar.gz |
Added google/benchmark submodule.
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | CMakeLists.txt | 4 | ||||
m--------- | third_party/benchmark | 0 |
3 files changed, 6 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules index 5a4e85a..6e6d3f0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "third_party/googletest"] path = third_party/googletest url = https://github.com/google/googletest.git +[submodule "third_party/benchmark"] + path = third_party/benchmark + url = https://github.com/google/benchmark diff --git a/CMakeLists.txt b/CMakeLists.txt index ae9b0f7..2cb2296 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/third_party/benchmark b/third_party/benchmark new file mode 160000 +Subproject bf585a2789e30585b4e3ce6baf11ef2750b5467 |