Open marcpawl opened 4 years ago
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.
Would be nice to have Google benchmark as one of the optional dependencies