test cases/native/12 add_project_arguments native true/meson.build
raw| 1 | project('test include path', 'c') |
| 2 | |
| 3 | if meson.get_compiler('c').get_id() not in ['gcc', 'clang'] |
| 4 | error('MESON_SKIP_TEST: test needs #include_next <>') |
| 5 | endif |
| 6 | |
| 7 | add_project_arguments('-iquote', meson.current_source_dir() / 'include', language: ['c']) |
| 8 | |
| 9 | e = executable('executable', 'test.c', native: true) |
| 10 | test('executable', e) |