project('external library', 'c') zlib = find_library('z') e = executable('zprog', 'prog.c', deps : zlib) test('libtest', e)