瀏覽代碼

Added google/benchmark submodule.

master
Chris Mumford 4 年之前
父節點
當前提交
37d36c92f8
共有 3 個文件被更改,包括 7 次插入1 次删除
  1. +3
    -0
      .gitmodules
  2. +3
    -1
      CMakeLists.txt
  3. +1
    -0
      third_party/benchmark

+ 3
- 0
.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

+ 3
- 1
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

+ 1
- 0
third_party/benchmark

@ -0,0 +1 @@
Subproject commit bf585a2789e30585b4e3ce6baf11ef2750b54677

Loading…
取消
儲存