gui_starter_template
gui_starter_template copied to clipboard
google benchmark support
Would be nice to have Google benchmark as one of the optional dependencies
I agree; a CMake flag that people can set would be a great way to encourage our users to benchmark their code.
Please note that it is trivial to add Google Benchmark as a dependency yourself, since it is hosted on Conan. Just add this line, perhaps within a conditional, to cpp_starter_project/CMakeLists.txt
:
set(CONAN_EXTRA_REQUIRES ${CONAN_EXTRA_REQUIRES} benchmark/1.5.1)
An argument could be made that benchmarks should be required rather than optional, and that Google Benchmark actually belongs in cpp_starter_project/cmake/Conan.cmake
right next to catch2
, as an equally important part of every project. This is a matter of opinion though.
I prefer that we add support for Coz
too. It is one of the best tools for benchmarking and profiling.