blob: d92225778e1ec4395b81b8dbfe6f90274eebdb1c [file] [log] [blame]
William A. Kennington IIIfc1722f2021-04-15 11:58:13 -07001project(
2 'sdeventplus',
3 'cpp',
4 version: '0.1',
Patrick Williams25f484b2023-07-17 10:07:13 -05005 meson_version: '>=1.1.1',
William A. Kennington IIIfc1722f2021-04-15 11:58:13 -07006 default_options: [
7 'warning_level=3',
Patrick Williams25f484b2023-07-17 10:07:13 -05008 'cpp_std=c++23',
William A. Kennington IIIfc1722f2021-04-15 11:58:13 -07009 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'),
10 'examples=' + (meson.is_subproject() ? 'false' : 'true'),
11 ])
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080012
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080013subdir('src')
14
15build_tests = get_option('tests')
16build_examples = get_option('examples')
17
18if build_examples
19 subdir('example')
20endif
Patrick Williamsa97cdd12025-01-30 17:47:48 -050021if build_tests.allowed()
William A. Kennington IIId4b33e92018-12-04 17:22:05 -080022 subdir('test')
23endif