test cases/common/115 subproject project arguments/subprojects/subexe/meson.build
raw| 1 | project('subproject', 'c', |
| 2 | version : '1.0.0', |
| 3 | license : ['sublicense1', 'sublicense2']) |
| 4 | |
| 5 | if not meson.is_subproject() |
| 6 | error('Claimed to be master project even though we are a subproject.') |
| 7 | endif |
| 8 | |
| 9 | assert(meson.project_name() == 'subproject', 'Incorrect subproject name') |
| 10 | |
| 11 | add_project_arguments('-DSUBPROJECT_OPTION', language: 'c') |
| 12 | e = executable('subexe', 'subexe.c') |
| 13 | test('subexetest', e) |