project('external dependency', 'c') # Zlib is probably on all dev machines. dep = find_dep('zlib') exe = executable('zlibprog', 'prog.c', deps : dep) test('zlibtest', exe) # Try to find a nonexistant library to ensure requires:false works. dep = find_dep('nvakuhrabnsdfasdf', required : false)