mirror of https://github.com/google/benchmark.git
Added gtest CHECK symbol to benchmark test
This commit is contained in:
parent
2aa2442024
commit
d31977bb69
|
@ -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)
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
namespace {
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
Loading…
Reference in New Issue