tomlplusplus/examples/meson.build
Mark Gillard 1381240e10 meson refactoring
- renamed options to `snake_case`
- tests, examples and cmake config now explicitly disabled when used as a subproject
- removed small_binaries (it's now implicit when building as release)
- added minimum meson version 0.53
2020-09-05 13:26:12 +03:00

23 lines
442 B
Meson

example_args = []
example_args += additional_arguments
if is_gcc or is_clang
example_args += [ '-Wno-switch', '-Wno-switch-default', '-Wno-switch-enum' ]
endif
examples = [
'simple_parser',
'toml_to_json_transcoder',
'toml_generator',
'error_printer'
]
foreach example : examples
executable(
example,
[ example+'.cpp' ],
include_directories : include_dirs,
cpp_args : example_args,
override_options: overrides
)
endforeach