test cases/common/79 same basename/meson.build
raw| 1 | project('same basename', 'c') |
| 2 | |
| 3 | subdir('sharedsub') |
| 4 | subdir('staticsub') |
| 5 | |
| 6 | # Use the same source file to check that each top level target |
| 7 | # has its own unique working directory. If they don't |
| 8 | # then the .o files will clobber each other. |
| 9 | |
| 10 | exe1 = executable('name', 'exe1.c', link_with : stlib) |
| 11 | exe2 = executable('name2', 'exe2.c', link_with : shlib) |
| 12 | |
| 13 | test('static', exe1) |
| 14 | test('shared', exe2) |