Added gtest CHECK symbol to benchmark test

This commit is contained in:
Dominic Hamon 2014-12-02 12:51:46 -08:00
parent 2aa2442024
commit d31977bb69
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,8 @@ find_package(Threads REQUIRED)
# Demonstration executable
add_executable(benchmark_test benchmark_test.cc)
target_link_libraries(benchmark_test benchmark ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(benchmark_test benchmark gtest ${CMAKE_THREAD_LIBS_INIT})
add_dependencies(benchmark_test googletest)
add_test(benchmark benchmark_test 50)
add_test(benchmark_filter_simple benchmark_test --benchmark_filter=Calculate 16)
add_test(benchmark_filter_prefix benchmark_test --benchmark_filter=*Calculate 0)

View File

@ -14,6 +14,8 @@
#include <string>
#include <vector>
#include <gtest/gtest.h>
namespace {
#ifdef DEBUG