Skip to content

Commit 37d36c9

Browse files
committed
Added google/benchmark submodule.
1 parent 2802398 commit 37d36c9

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "third_party/googletest"]
22
path = third_party/googletest
33
url = https://github.com/google/googletest.git
4+
[submodule "third_party/benchmark"]
5+
path = third_party/benchmark
6+
url = https://github.com/google/benchmark

CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ if(LEVELDB_BUILD_TESTS)
298298
# This project is tested using GoogleTest.
299299
add_subdirectory("third_party/googletest")
300300

301+
add_subdirectory("third_party/benchmark")
302+
301303
# GoogleTest triggers a missing field initializers warning.
302304
if(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS)
303305
set_property(TARGET gtest
@@ -318,7 +320,7 @@ if(LEVELDB_BUILD_TESTS)
318320

319321
"${test_file}"
320322
)
321-
target_link_libraries("${test_target_name}" leveldb gmock gtest)
323+
target_link_libraries("${test_target_name}" leveldb gmock gtest benchmark)
322324
target_compile_definitions("${test_target_name}"
323325
PRIVATE
324326
${LEVELDB_PLATFORM_NAME}=1

third_party/benchmark

Submodule benchmark added at bf585a2

0 commit comments

Comments
 (0)