| 1 |
project('external dependency with static', 'c') |
| 2 |
|
| 3 |
# Zlib is probably on all dev machines. |
| 4 |
|
| 5 |
dep = dependency('zlib') |
| 6 |
statlib = static_library('statlib', 'lib.c', dependencies : dep) |
| 7 |
exe = executable('prog', 'prog.c', link_with : statlib) |
| 8 |
|
| 9 |
|
| 10 |
test('zlibtest', exe) |