kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 1 | project( |
| 2 | 'libbej', |
| 3 | 'c', |
| 4 | 'cpp', |
| 5 | version: '0.1', |
| 6 | meson_version: '>=0.57.0', |
| 7 | default_options: [ |
| 8 | 'c_std=c18', |
| 9 | 'cpp_std=c++20', |
| 10 | 'werror=true', |
| 11 | 'warning_level=3', |
Willy Tu | 5433c17 | 2022-06-08 22:34:16 -0700 | [diff] [blame] | 12 | 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'), |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 13 | ]) |
| 14 | |
kasunath | ec85e11 | 2022-11-28 17:32:30 -0800 | [diff] [blame] | 15 | libbej_incs = include_directories('include', 'include/libbej') |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 16 | subdir('src') |
kasunath | 80ad94f | 2022-10-31 14:42:26 -0700 | [diff] [blame] | 17 | subdir('include/libbej') |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 18 | if not get_option('tests').disabled() |
| 19 | subdir('test') |
| 20 | endif |
Willy Tu | cc4098e | 2022-06-23 11:39:38 -0700 | [diff] [blame] | 21 | |