test cases/native/10 native subproject/subprojects/recursive-host-only/meson.build
raw| 1 | project('recursive-host-only', 'c') |
| 2 | |
| 3 | subp = subproject('recursive-build-only', native : true) |
| 4 | |
| 5 | prog = subp.get_variable('exe') |
| 6 | |
| 7 | ct = custom_target( |
| 8 | 'main.c', |
| 9 | output : 'main.c', |
| 10 | command : prog, |
| 11 | capture : true, |
| 12 | ) |
| 13 | |
| 14 | exe = executable('main', ct, native : true) |
| 15 | |
| 16 | test('main', exe) |