William A. Kennington III | 9b171d9 | 2021-04-16 13:29:44 -0700 | [diff] [blame] | 1 | project( |
| 2 | 'stdplus', |
| 3 | 'cpp', |
| 4 | version: '0.1', |
William A. Kennington III | b5d1c58 | 2021-04-16 13:41:39 -0700 | [diff] [blame] | 5 | meson_version: '>=0.57.0', |
William A. Kennington III | 9b171d9 | 2021-04-16 13:29:44 -0700 | [diff] [blame] | 6 | default_options: [ |
| 7 | 'warning_level=3', |
William A. Kennington III | fd0f551 | 2021-04-16 13:43:26 -0700 | [diff] [blame] | 8 | 'cpp_std=c++20', |
William A. Kennington III | 9b171d9 | 2021-04-16 13:29:44 -0700 | [diff] [blame] | 9 | 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'), |
| 10 | 'examples=' + (meson.is_subproject() ? 'false' : 'true'), |
| 11 | ]) |
William A. Kennington III | 15982f6 | 2019-01-31 14:43:41 -0800 | [diff] [blame] | 12 | |
William A. Kennington III | 15982f6 | 2019-01-31 14:43:41 -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 |