blob: 456402a86552f4d440b47418b3fd0b17e316136a [file] [log] [blame]
William A. Kennington IIIfc1722f2021-04-15 11:58:13 -07001project(
Patrick Williams9f2a21c2025-02-01 08:37:23 -05002 'sdeventplus',
3 'cpp',
4 version: '0.1',
5 meson_version: '>=1.1.1',
6 default_options: [
7 'warning_level=3',
8 'cpp_std=c++23',
9 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'),
10 'examples=' + (meson.is_subproject() ? 'false' : 'true'),
11 ],
12)
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080013
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080014subdir('src')
15
16build_tests = get_option('tests')
17build_examples = get_option('examples')
18
19if build_examples
Patrick Williams9f2a21c2025-02-01 08:37:23 -050020 subdir('example')
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080021endif
Patrick Williamsa97cdd12025-01-30 17:47:48 -050022if build_tests.allowed()
Patrick Williams9f2a21c2025-02-01 08:37:23 -050023 subdir('test')
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080024endif