2023-01-22 19:53:21 +00:00
|
|
|
# This file is a part of toml++ and is subject to the the terms of the MIT license.
|
|
|
|
# Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>
|
|
|
|
# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text.
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2020-09-05 10:26:12 +00:00
|
|
|
example_args = []
|
2023-01-22 19:53:21 +00:00
|
|
|
example_args += global_args
|
2020-04-14 05:45:24 +00:00
|
|
|
|
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',
|
2022-05-20 14:54:58 +00:00
|
|
|
'toml_merger',
|
2020-09-05 10:26:12 +00:00
|
|
|
]
|
2020-04-14 09:45:32 +00:00
|
|
|
|
2021-11-25 18:20:22 +00:00
|
|
|
example_executables = []
|
2020-09-05 10:26:12 +00:00
|
|
|
foreach example : examples
|
2021-11-25 18:20:22 +00:00
|
|
|
example_executables += [[
|
2020-09-05 10:26:12 +00:00
|
|
|
example,
|
2021-11-25 18:20:22 +00:00
|
|
|
executable(
|
|
|
|
example,
|
2023-01-22 19:53:21 +00:00
|
|
|
[ example + '.cpp' ],
|
2021-11-25 18:20:22 +00:00
|
|
|
cpp_args: example_args,
|
2022-02-12 13:25:20 +00:00
|
|
|
dependencies: tomlplusplus_dep,
|
2023-01-22 19:53:21 +00:00
|
|
|
override_options: global_overrides
|
2021-11-25 18:20:22 +00:00
|
|
|
)
|
|
|
|
]]
|
2020-09-05 10:26:12 +00:00
|
|
|
endforeach
|