build: Add options for tweaking what is built
We don't need to always build tests or examples so make it possible for
the user to configure what is built. The default is to automatically
build them if possible.
Change-Id: I5cb6b1689c408188f14d1fcbcfb0006c17f1c90d
Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/example/meson.build b/example/meson.build
index 044d3a9..957c01d 100644
--- a/example/meson.build
+++ b/example/meson.build
@@ -4,6 +4,11 @@
dependencies: sdbusplus_dep,
)
+assert(
+ not get_option('examples').enabled() or boost_dep.found(),
+ 'Boost is required when examples are enabled'
+)
+
executable(
'asio-example',
'asio-example.cpp',