Update examples to use new option

We use a dictionary to remove some code duplication.
This commit is contained in:
Scott Anderson 2018-08-22 20:49:23 +12:00
parent 560e96aa57
commit 584a3f8b6e
3 changed files with 89 additions and 72 deletions

View file

@ -160,11 +160,7 @@ summary = [
]
message('\n'.join(summary))
if get_option('enable-examples')
subdir('examples')
endif
subdir('examples')
subdir('rootston')
pkgconfig = import('pkgconfig')