meson.build 207 B

12345678910
  1. project('source generation', 'c')
  2. ct = custom_target('gen',
  3. output : ['mylib.h', 'mylib.c'],
  4. command : [find_program('generator.py'), '@OUTDIR@'],
  5. )
  6. e = executable('prog', 'main.c', ct)
  7. test('gentest', e)