blob: d69fee3e278d78df8b67107c28d0749dbaad6562 [file] [log] [blame]
William A. Kennington III15658972019-03-27 19:44:36 -07001project('gpioplus', 'cpp',
William A. Kennington III2f8444c2020-06-03 13:39:49 -07002 version: '0.1', meson_version: '>=0.53.2',
William A. Kennington III15658972019-03-27 19:44:36 -07003 default_options: [
4 'warning_level=3',
5 'werror=true',
William A. Kennington III778baa22020-06-03 13:38:57 -07006 'cpp_std=c++17',
7 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'),
8 'examples=' + (meson.is_subproject() ? 'false' : 'true'),
William A. Kennington III15658972019-03-27 19:44:36 -07009 ])
10
William A. Kennington III15658972019-03-27 19:44:36 -070011subdir('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