blob: e5da27ef9274ec9bf369aaf35fe321bb2f2114de [file] [log] [blame]
project('selfbuilt custom', 'cpp')
# Build an exe and use it in a custom target
# whose output is used to build a different exe.
tool = executable('tool', 'tool.cpp', native : true)
hfile = custom_target('datah',
output : 'data.h',
input : 'data.dat',
command : [tool, '@INPUT@', '@OUTPUT@'],
)
main = executable('mainprog', 'mainprog.cpp', hfile)
test('maintest', main)