diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-06-29 14:53:04 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-06-29 14:53:04 +0200 |
commit | 5079736a0277175f888cee27d5cb3f905fb09029 (patch) | |
tree | 818289091620a428d5c9f01f66bfe2afb636ad8c /vespalib/src/tests/datastore | |
parent | a58193603b25fbf75fac825aa44e789cb711e70c (diff) |
Use find_package to find gtest library.
Diffstat (limited to 'vespalib/src/tests/datastore')
4 files changed, 8 insertions, 4 deletions
diff --git a/vespalib/src/tests/datastore/datastore/CMakeLists.txt b/vespalib/src/tests/datastore/datastore/CMakeLists.txt index eb3e0a4576a..631c1812a7f 100644 --- a/vespalib/src/tests/datastore/datastore/CMakeLists.txt +++ b/vespalib/src/tests/datastore/datastore/CMakeLists.txt @@ -1,9 +1,10 @@ # Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +find_package(GTest REQUIRED) vespa_add_executable(vespalib_datastore_test_app TEST SOURCES datastore_test.cpp DEPENDS vespalib - gtest + GTest::GTest ) vespa_add_test(NAME vespalib_datastore_test_app COMMAND vespalib_datastore_test_app) diff --git a/vespalib/src/tests/datastore/unique_store/CMakeLists.txt b/vespalib/src/tests/datastore/unique_store/CMakeLists.txt index d72e8c10ad5..29b34e93247 100644 --- a/vespalib/src/tests/datastore/unique_store/CMakeLists.txt +++ b/vespalib/src/tests/datastore/unique_store/CMakeLists.txt @@ -1,9 +1,10 @@ # Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +find_package(GTest REQUIRED) vespa_add_executable(vespalib_unique_store_test_app TEST SOURCES unique_store_test.cpp DEPENDS vespalib - gtest + GTest::GTest ) vespa_add_test(NAME vespalib_unique_store_test_app COMMAND vespalib_unique_store_test_app) diff --git a/vespalib/src/tests/datastore/unique_store_dictionary/CMakeLists.txt b/vespalib/src/tests/datastore/unique_store_dictionary/CMakeLists.txt index b1478dea22c..2208902b5bb 100644 --- a/vespalib/src/tests/datastore/unique_store_dictionary/CMakeLists.txt +++ b/vespalib/src/tests/datastore/unique_store_dictionary/CMakeLists.txt @@ -1,9 +1,10 @@ # Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +find_package(GTest REQUIRED) vespa_add_executable(vespalib_unique_store_dictionary_test_app TEST SOURCES unique_store_dictionary_test.cpp DEPENDS vespalib - gtest + GTest::GTest ) vespa_add_test(NAME vespalib_unique_store_dictionary_test_app COMMAND vespalib_unique_store_dictionary_test_app) diff --git a/vespalib/src/tests/datastore/unique_store_string_allocator/CMakeLists.txt b/vespalib/src/tests/datastore/unique_store_string_allocator/CMakeLists.txt index c2a9999d545..9984877ab21 100644 --- a/vespalib/src/tests/datastore/unique_store_string_allocator/CMakeLists.txt +++ b/vespalib/src/tests/datastore/unique_store_string_allocator/CMakeLists.txt @@ -1,9 +1,10 @@ # Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +find_package(GTest REQUIRED) vespa_add_executable(vespalib_unique_store_string_allocator_test_app TEST SOURCES unique_store_string_allocator_test.cpp DEPENDS vespalib - gtest + GTest::GTest ) vespa_add_test(NAME vespalib_unique_store_string_allocator_test_app COMMAND vespalib_unique_store_string_allocator_test_app) |