project('rewritetest', 'c') sources = ['trivial.c', 'notthere.c'] exe1 = executable('trivialprog1', sources) exe2 = executable('trivialprog2', ['main.cpp', 'fileA.cpp'])