project('trivial subproject', 'c') trivial_lib = static_library('trivial', 'trivial.c', install: false) trivial_dep = declare_dependency(link_with: trivial_lib)