project('array test', 'c') arr = [ 'func.c', 'prog.c'] exe = executable('prog', sources : arr) add_test('arr test', exe)