William A. Kennington III | fc1722f | 2021-04-15 11:58:13 -0700 | [diff] [blame] | 1 | project( |
| 2 | 'sdeventplus', |
| 3 | 'cpp', |
| 4 | version: '0.1', |
| 5 | meson_version: '>=0.53.2', |
| 6 | default_options: [ |
| 7 | 'warning_level=3', |
William A. Kennington III | fc1722f | 2021-04-15 11:58:13 -0700 | [diff] [blame] | 8 | 'cpp_std=c++17', |
| 9 | 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'), |
| 10 | 'examples=' + (meson.is_subproject() ? 'false' : 'true'), |
| 11 | ]) |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 12 | |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 13 | subdir('src') |
| 14 | |
| 15 | build_tests = get_option('tests') |
| 16 | build_examples = get_option('examples') |
| 17 | |
| 18 | if build_examples |
| 19 | subdir('example') |
| 20 | endif |
| 21 | if not build_tests.disabled() |
| 22 | subdir('test') |
| 23 | endif |