project('static library linking test', 'c')
lib = static_library('mylib', 'libfile.c')
exe = executable('prog', 'main.c')
exe.link(lib)
add_test('runtest', exe)