2020-09-05 10:26:12 +00:00
|
|
|
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
|
|
|
|
|
2020-09-05 10:26:12 +00:00
|
|
|
examples = [
|
2020-04-14 05:25:03 +00:00
|
|
|
'simple_parser',
|
2020-01-06 18:21:16 +00:00
|
|
|
'toml_to_json_transcoder',
|
2020-04-14 05:25:03 +00:00
|
|
|
'toml_generator',
|
2021-11-04 09:56:03 +00:00
|
|
|
'error_printer',
|
|
|
|
'parse_benchmark',
|
2020-09-05 10:26:12 +00:00
|
|
|
]
|
2020-04-14 09:45:32 +00:00
|
|
|
|
2020-09-05 10:26:12 +00:00
|
|
|
foreach example : examples
|
|
|
|
executable(
|
|
|
|
example,
|
|
|
|
[ example+'.cpp' ],
|
2021-09-22 06:47:15 +00:00
|
|
|
include_directories: include_dirs,
|
|
|
|
cpp_args: example_args,
|
2020-09-05 10:26:12 +00:00
|
|
|
override_options: overrides
|
|
|
|
)
|
|
|
|
endforeach
|