1project( 2 'gpioplus', 3 'cpp', 4 version: '0.1', meson_version: '>=0.57.0', 5 default_options: [ 6 'warning_level=3', 7 'cpp_std=c++20', 8 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'), 9 'examples=' + (meson.is_subproject() ? 'false' : 'true'), 10 ]) 11 12subdir('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 23