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