| --- a/CMakeLists.txt |
| +++ b/CMakeLists.txt |
| @@ -296,20 +296,11 @@ |
| set(build_gmock ON) |
| |
| # This project is tested using GoogleTest. |
| - add_subdirectory("third_party/googletest") |
| + find_package(GTest REQUIRED) |
| |
| # This project uses Google benchmark for benchmarking. |
| set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE) |
| set(BENCHMARK_ENABLE_EXCEPTIONS OFF CACHE BOOL "" FORCE) |
| - add_subdirectory("third_party/benchmark") |
| - |
| - # GoogleTest triggers a missing field initializers warning. |
| - if(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS) |
| - set_property(TARGET gtest |
| - APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers) |
| - set_property(TARGET gmock |
| - APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers) |
| - endif(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS) |
| |
| function(leveldb_test test_file) |
| get_filename_component(test_target_name "${test_file}" NAME_WE) |