xref: /openbmc/gpioplus/meson.build (revision 2f8444ce)
1project('gpioplus', 'cpp',
2        version: '0.1', meson_version: '>=0.53.2',
3        default_options: [
4          'warning_level=3',
5          'werror=true',
6          'cpp_std=c++17',
7          'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'),
8          'examples=' + (meson.is_subproject() ? 'false' : 'true'),
9        ])
10
11subdir('src')
12
13build_tests = get_option('tests')
14build_examples = get_option('examples')
15
16if build_examples
17  subdir('example')
18endif
19if not build_tests.disabled()
20  subdir('test')
21endif
22