1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 8a1a1a9..30e09a3 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,4 +1,8 @@
#Enable the tests
+cmake_minimum_required(VERSION 3.9)
+project(benchmark_autopkgtest)
+find_package(benchmark REQUIRED)
+find_package(GTest REQUIRED)
set(THREADS_PREFER_PTHREAD_FLAG ON)
@@ -233,7 +237,7 @@ if (BENCHMARK_ENABLE_GTEST_TESTS)
macro(compile_gtest name)
add_executable(${name} "${name}.cc")
target_link_libraries(${name} benchmark::benchmark
- gmock_main ${CMAKE_THREAD_LIBS_INIT})
+ GTest::gmock_main ${CMAKE_THREAD_LIBS_INIT})
endmacro(compile_gtest)
macro(add_gtest name)
|