Skip to content
Snippets Groups Projects
Commit f0c6a313 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[cmake] find and use google benchmark through cmake

parent 0360e730
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,8 @@
# generator is run.
#
find_package(benchmark)
add_custom_target(generation)
# Gather a list of form compiler sources to add as dependencies
......
......@@ -21,10 +21,9 @@ dune_python_add_test(NAME pep8-ourcode
add_subdirectory(test)
# Add a dummy target to extract compiler flags for the autotune tool chain
include_directories(../../benchmark/include)
link_directories(../../build-benchmark-optimized-gcc8/src)
add_executable(_autotune_target EXCLUDE_FROM_ALL _autotune.cc)
target_link_libraries(_autotune_target benchmark)
target_compile_options(_autotune_target PUBLIC -fno-strict-aliasing)
if(benchmark_FOUND)
target_link_libraries(_autotune_target benchmark::benchmark)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment