Add ExprTk_BUILD_EXAMPLES to build examples

Also move examples into an examples folder
This commit is contained in:
Spiros Tsalikis
2023-02-25 15:01:05 -05:00
parent 2c35cb4e74
commit 1491ae63ca
21 changed files with 78 additions and 19 deletions

View File

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