blob: 9efa9f8a9714d9032b2a93890ab7753091603606 [file] [log] [blame]
William A. Kennington III6398d722021-04-16 13:45:58 -07001project(
2 'gpioplus',
3 'cpp',
William A. Kennington III3f49f012021-04-16 13:53:27 -07004 version: '0.1', meson_version: '>=0.57.0',
William A. Kennington III6398d722021-04-16 13:45:58 -07005 default_options: [
6 'warning_level=3',
William A. Kennington III71e795a2021-04-16 13:54:01 -07007 'cpp_std=c++20',
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