blob: 585fc72f984237d8b023a1284c2001c809d0f69e [file] [log] [blame]
William A. Kennington III15982f62019-01-31 14:43:41 -08001project('stdplus', 'cpp',
William A. Kennington IIIa2d67e22020-02-19 12:17:39 -08002 version: '0.1', meson_version: '>=0.53.2',
William A. Kennington III15982f62019-01-31 14:43:41 -08003 default_options: [
4 'warning_level=3',
5 'werror=true',
William A. Kennington III3e804c72020-02-19 13:15:26 -08006 'cpp_std=c++17',
7 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'),
8 'examples=' + (meson.is_subproject() ? 'false' : 'true'),
William A. Kennington III15982f62019-01-31 14:43:41 -08009 ])
10
William A. Kennington III15982f62019-01-31 14:43:41 -080011subdir('src')
12
13build_tests = get_option('tests')
14build_examples = get_option('examples')
15
16if build_examples
17 subdir('example')
18endif
19if not build_tests.disabled()
20 subdir('test')
21endif