project('sub1', 'c') sub1_lib = library('sub1', 'lib.c') sub1_dep = declare_dependency(link_with : sub1_lib)