aboutsummaryrefslogtreecommitdiffstats
path: root/storageframework
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 /storageframework
parenta58193603b25fbf75fac825aa44e789cb711e70c (diff)
Use find_package to find gtest library.
Diffstat (limited to 'storageframework')
-rw-r--r--storageframework/src/tests/CMakeLists.txt4
-rw-r--r--storageframework/src/tests/clock/CMakeLists.txt3
-rw-r--r--storageframework/src/tests/thread/CMakeLists.txt3
3 files changed, 7 insertions, 3 deletions
diff --git a/storageframework/src/tests/CMakeLists.txt b/storageframework/src/tests/CMakeLists.txt
index d658605a911..1cf40b8a2ef 100644
--- a/storageframework/src/tests/CMakeLists.txt
+++ b/storageframework/src/tests/CMakeLists.txt
@@ -1,5 +1,7 @@
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+find_package(GTest REQUIRED)
+
# Runner for unit tests written in gtest.
# NOTE: All new test classes should be added here.
vespa_add_executable(storageframework_gtest_runner_app TEST
@@ -8,7 +10,7 @@ vespa_add_executable(storageframework_gtest_runner_app TEST
DEPENDS
storageframework_testclock
storageframework_testthread
- gtest
+ GTest::GTest
)
vespa_add_test(
diff --git a/storageframework/src/tests/clock/CMakeLists.txt b/storageframework/src/tests/clock/CMakeLists.txt
index f887de61239..62bb6eeedc1 100644
--- a/storageframework/src/tests/clock/CMakeLists.txt
+++ b/storageframework/src/tests/clock/CMakeLists.txt
@@ -1,8 +1,9 @@
# 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_library(storageframework_testclock
SOURCES
timetest.cpp
DEPENDS
storageframework
- gtest
+ GTest::GTest
)
diff --git a/storageframework/src/tests/thread/CMakeLists.txt b/storageframework/src/tests/thread/CMakeLists.txt
index 3e6db8c9b57..810b0c59912 100644
--- a/storageframework/src/tests/thread/CMakeLists.txt
+++ b/storageframework/src/tests/thread/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_library(storageframework_testthread
SOURCES
tickingthreadtest.cpp
taskthreadtest.cpp
DEPENDS
storageframework
- gtest
+ GTest::GTest
)