Add ExprTk_BUILD_BENCHMARKS to build benchmarks

Also move benchmarks into an benchmarks folder
This commit is contained in:
Spiros Tsalikis
2023-02-25 15:04:51 -05:00
parent 1491ae63ca
commit da3d89ba1f
3 changed files with 24 additions and 0 deletions

View File

@ -55,3 +55,10 @@ option(ExprTk_BUILD_EXAMPLES "Build ExprTk examples" ON)
if (ExprTk_BUILD_EXAMPLES)
add_subdirectory(examples)
endif ()
# create an ExprTK option for building benchmarks
option(ExprTk_BUILD_BENCHMARKS "Build ExprTk benchmarks" ON)
# if ExprTk_BUILD_BENCHMARKS is set to ON, then build the benchmarks
if (ExprTk_BUILD_BENCHMARKS)
add_subdirectory(benchmarks)
endif ()