mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-06-22 16:28:57 +00:00
Add ExprTk_BUILD_BENCHMARKS to build benchmarks
Also move benchmarks into an benchmarks folder
This commit is contained in:
@ -55,3 +55,10 @@ option(ExprTk_BUILD_EXAMPLES "Build ExprTk examples" ON)
|
|||||||
if (ExprTk_BUILD_EXAMPLES)
|
if (ExprTk_BUILD_EXAMPLES)
|
||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
endif ()
|
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 ()
|
||||||
|
17
benchmarks/CMakeLists.txt
Normal file
17
benchmarks/CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# **************************************************************
|
||||||
|
# * C++ Mathematical Expression Toolkit Library *
|
||||||
|
# * *
|
||||||
|
# * Author: Arash Partow (1999-2023) *
|
||||||
|
# * URL: https://www.partow.net/programming/exprtk/index.html *
|
||||||
|
# * *
|
||||||
|
# * Copyright notice: *
|
||||||
|
# * Free use of the Mathematical Expression Toolkit Library is *
|
||||||
|
# * permitted under the guidelines and in accordance with the *
|
||||||
|
# * most current version of the MIT License. *
|
||||||
|
# * http://www.opensource.org/licenses/MIT *
|
||||||
|
# * *
|
||||||
|
# **************************************************************
|
||||||
|
|
||||||
|
# create executables for benchmark
|
||||||
|
add_executable(exprtk_benchmark exprtk_benchmark.cpp)
|
||||||
|
target_link_libraries(exprtk_benchmark ExprTk)
|
Reference in New Issue
Block a user