project('link with exe', 'c')
e = executable('prog', 'prog.c')
m = shared_module('module', 'module.c', link_with: e)