| 1 |
project('preprocess', 'fortran', meson_version: '>1.3.2') |
| 2 |
|
| 3 |
fc = meson.get_compiler('fortran') |
| 4 |
|
| 5 |
pp_files = fc.preprocess( |
| 6 |
'main.f90', |
| 7 |
compile_args: ['-DCORRECT=true'], |
| 8 |
output: '@PLAINNAME@') |
| 9 |
|
| 10 |
t = executable('foo', pp_files) |
| 11 |
|
| 12 |
test('check_result', t) |