| 1 |
project('shared library linking test', 'c', 'cpp') |
| 2 |
|
| 3 |
lib = shared_library('mylib', |
| 4 |
'libfile.c' # Split to different lines before and after the comma to test parser. |
| 5 |
, install : false) # Don't install libraries in common tests; the path is platform-specific |
| 6 |
exe = executable('prog', 'main.c', link_with : lib, install : true) |
| 7 |
|
| 8 |
test('runtest', exe) |
| 9 |
|
| 10 |
cpplib = shared_library('mycpplib', 'cpplib.cpp') |
| 11 |
cppexe = executable('cppprog', 'cppmain.cpp', link_with : cpplib) |
| 12 |
test('cpptest', cppexe) |