we need an autodiff library at some point (or we need to roll our own but I do not think that makes sense). CppAD is well tested and header only and easy to include. It is also Liscene compatible with GPL v3.0. Here we bring it in as a dependency
25 lines
506 B
Meson
25 lines
506 B
Meson
cmake = import('cmake')
|
|
|
|
subdir('mfem')
|
|
subdir('yaml-cpp')
|
|
subdir('quill')
|
|
subdir('boost')
|
|
subdir('opatIO')
|
|
subdir('mpi')
|
|
subdir('hypre')
|
|
subdir('pybind')
|
|
subdir('cppad')
|
|
|
|
# Set the config file error handling options
|
|
configErr = get_option('config_error_handling')
|
|
|
|
# build up any -D flags we need
|
|
commonCppArgs = []
|
|
if configErr == 'warn'
|
|
commonCppArgs += ['-DCONFIG_WARN']
|
|
elif configErr == 'harsh'
|
|
commonCppArgs += ['-DCONFIG_HARSH']
|
|
endif
|
|
|
|
add_project_arguments(commonCppArgs, language: 'cpp')
|