From 51e3475f38f5443dfd84d1a657ae79b276658ea2 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 1 Sep 2024 21:25:37 +0200 Subject: [PATCH] feat: install examples for top level builds (#233) This might be useful for distribution packagers to provide example programs in their packages. Signed-off-by: Sefa Eyeoglu --- README.md | 1 + examples/meson.build | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fa8f08ca..84a1b2f7 100644 --- a/README.md +++ b/README.md @@ -294,6 +294,7 @@ UTF-8 decoding is performed using a state machine based on Bjoern Hoehrmann's '[ - **[@rbrugo](https://github.com/rbrugo)** - Helped design a new feature - **[@Reedbeta](https://github.com/Reedbeta)** - Fixed a bug and added additional Visual Studio debugger native visualizers - **[@Ryan-rsm-McKenzie](https://github.com/Ryan-rsm-McKenzie)** - Add natvis file to cmake install script +- **[@Scrumplex][https://github.com/Scrumplex)** - Tweaked the build scripts - **[@shdnx](https://github.com/shdnx)** - Fixed a bug on GCC 8.2.0 and some meson config issues - **[@sneves](https://github.com/sneves)** - Helped fix a number of parser bugs - **[@sobczyk](https://github.com/sobczyk)** - Reported some bugs diff --git a/examples/meson.build b/examples/meson.build index 366f37c7..fa38aab9 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -24,7 +24,8 @@ foreach example : examples [ example + '.cpp' ], cpp_args: example_args, dependencies: tomlplusplus_dep, - override_options: global_overrides + override_options: global_overrides, + install: not is_subproject ) ]] endforeach