blob: 8e09a593d2d27e39d18f2807e9853425dc7d2a62 [file] [log] [blame]
William A. Kennington III9b171d92021-04-16 13:29:44 -07001project(
2 'stdplus',
3 'cpp',
4 version: '0.1',
William A. Kennington IIIb5d1c582021-04-16 13:41:39 -07005 meson_version: '>=0.57.0',
William A. Kennington III9b171d92021-04-16 13:29:44 -07006 default_options: [
7 'warning_level=3',
William A. Kennington IIIfd0f5512021-04-16 13:43:26 -07008 'cpp_std=c++20',
William A. Kennington III9b171d92021-04-16 13:29:44 -07009 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'),
10 'examples=' + (meson.is_subproject() ? 'false' : 'true'),
11 ])
William A. Kennington III15982f62019-01-31 14:43:41 -080012
William A. Kennington III15982f62019-01-31 14:43:41 -080013subdir('src')
14
15build_tests = get_option('tests')
16build_examples = get_option('examples')
17
18if build_examples
19 subdir('example')
20endif
21if not build_tests.disabled()
22 subdir('test')
23endif