tomlplusplus/examples/meson.build

23 lines
440 B
Meson
Raw Normal View History

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