summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/matching
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-06-29 14:53:04 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-06-29 14:53:04 +0200
commit5079736a0277175f888cee27d5cb3f905fb09029 (patch)
tree818289091620a428d5c9f01f66bfe2afb636ad8c /searchcore/src/tests/proton/matching
parenta58193603b25fbf75fac825aa44e789cb711e70c (diff)
Use find_package to find gtest library.
Diffstat (limited to 'searchcore/src/tests/proton/matching')
-rw-r--r--searchcore/src/tests/proton/matching/handle_recorder/CMakeLists.txt3
-rw-r--r--searchcore/src/tests/proton/matching/request_context/CMakeLists.txt3
-rw-r--r--searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/CMakeLists.txt3
3 files changed, 6 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/matching/handle_recorder/CMakeLists.txt b/searchcore/src/tests/proton/matching/handle_recorder/CMakeLists.txt
index a56d22ab154..3f4fd071e5c 100644
--- a/searchcore/src/tests/proton/matching/handle_recorder/CMakeLists.txt
+++ b/searchcore/src/tests/proton/matching/handle_recorder/CMakeLists.txt
@@ -1,10 +1,11 @@
# 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(searchcore_matching_handle_recorder_test_app TEST
SOURCES
handle_recorder_test.cpp
DEPENDS
searchcore_matching
- gtest
+ GTest::GTest
)
vespa_add_test(NAME searchcore_matching_handle_recorder_test_app COMMAND searchcore_matching_handle_recorder_test_app)
diff --git a/searchcore/src/tests/proton/matching/request_context/CMakeLists.txt b/searchcore/src/tests/proton/matching/request_context/CMakeLists.txt
index 54696112302..c044a9d4869 100644
--- a/searchcore/src/tests/proton/matching/request_context/CMakeLists.txt
+++ b/searchcore/src/tests/proton/matching/request_context/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(searchcore_matching_request_context_test_app TEST
SOURCES
request_context_test.cpp
DEPENDS
searchcore_matching
- gtest
+ GTest::GTest
)
vespa_add_test(NAME searchcore_matching_request_context_test_app COMMAND searchcore_matching_request_context_test_app)
diff --git a/searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/CMakeLists.txt b/searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/CMakeLists.txt
index 6fce7151664..764208c0eba 100644
--- a/searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/CMakeLists.txt
+++ b/searchcore/src/tests/proton/matching/unpacking_iterators_optimizer/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(searchcore_unpacking_iterators_optimizer_test_app TEST
SOURCES
unpacking_iterators_optimizer_test.cpp
DEPENDS
searchcore_matching
- gtest
+ GTest::GTest
)
vespa_add_test(NAME searchcore_unpacking_iterators_optimizer_test_app COMMAND searchcore_unpacking_iterators_optimizer_test_app)