Refactoring CMake configs, adding Catch2 benchmark support

This commit is contained in:
Ian Roddis
2021-09-22 16:33:50 -03:00
parent 510aa236c4
commit d19648fa84
5 changed files with 93 additions and 21 deletions

View File

@@ -5,3 +5,7 @@ FetchContent_Declare(
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.7)
FetchContent_MakeAvailable(Catch2)
if (DAGGY_ENABLE_BENCHMARKS)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCATCH_CONFIG_ENABLE_BENCHMARKING")
endif()