mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-06-22 16:28:57 +00:00
Add ExprTk_BUILD_EXAMPLES to build examples
Also move examples into an examples folder
This commit is contained in:
@ -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 ()
|
||||
|
Reference in New Issue
Block a user