project('proj', 'c') subdir('foo') bar = library('bar', 'bar.c', link_with: foo, install: true, )