project('multiple dir configure file', 'c') subdir('subdir') configure_file(input : 'subdir/someinput.in', output : 'outputhere', copy: true) configure_file(input : cfile1, output : '@BASENAME@', copy: true)