Add ExprTk_BUILD_TESTING flag to enable testing

Also move the tests in a tests directory
This commit is contained in:
Spiros Tsalikis
2023-02-25 14:56:00 -05:00
parent 03c2487999
commit 2c35cb4e74
5 changed files with 26 additions and 0 deletions

18
tests/CMakeLists.txt Normal file
View File

@ -0,0 +1,18 @@
# **************************************************************
# * 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 *
# * *
# **************************************************************
add_executable(exprtk_test exprtk_test.cpp)
target_link_libraries(exprtk_test ExprTk)
add_test(NAME exprtk_test COMMAND exprtk_test)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

9405
tests/exprtk_test.cpp Normal file

File diff suppressed because it is too large Load Diff