project('outdir path', 'c') configure_file(input : 'foo.in', output : 'subdir/foo', copy: true)