meson.build 367 B

1234567891011121314151617
  1. project('selfbuilt custom', 'cpp')
  2. # Build an exe and use it in a custom target
  3. # whose output is used to build a different exe.
  4. tool = executable('tool', 'tool.cpp')
  5. hfile = custom_target('datah',
  6. output : 'data.h',
  7. input : 'data.dat',
  8. command : [tool, '@INPUT@', '@OUTPUT@'],
  9. )
  10. main = executable('mainprog', 'mainprog.cpp', hfile)
  11. test('maintest', main)