blob: b62788adf8fa9ff4bf7da9aa352f51067bbd764f [file] [log] [blame]
William A. Kennington III6398d722021-04-16 13:45:58 -07001project(
2 'gpioplus',
3 'cpp',
Patrick Williams0f68a6f2023-07-12 11:16:08 -05004 version: '0.1', meson_version: '>=1.1.1',
William A. Kennington III6398d722021-04-16 13:45:58 -07005 default_options: [
6 'warning_level=3',
Patrick Williams0f68a6f2023-07-12 11:16:08 -05007 'cpp_std=c++23',
William A. Kennington III6398d722021-04-16 13:45:58 -07008 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'),
9 'examples=' + (meson.is_subproject() ? 'false' : 'true'),
10 ])
William A. Kennington III15658972019-03-27 19:44:36 -070011
William A. Kennington III15658972019-03-27 19:44:36 -070012subdir('src')
13
14build_tests = get_option('tests')
15build_examples = get_option('examples')
16
17if build_examples
18 subdir('example')
19endif
20if not build_tests.disabled()
21 subdir('test')
22endif