test cases/cmake/6 object library no dep/meson.build
raw| 1 | project('cmake_object_lib_test', 'cpp') |
| 2 | |
| 3 | cm = import('cmake') |
| 4 | |
| 5 | sub_pro = cm.subproject('cmObjLib') |
| 6 | sub_sha = sub_pro.dependency('lib_sha') |
| 7 | sub_sta = sub_pro.dependency('lib_sta') |
| 8 | |
| 9 | exe_sha = executable('shared', ['main.cpp'], dependencies: [sub_sha]) |
| 10 | exe_sta = executable('static', ['main.cpp'], dependencies: [sub_sta]) |
| 11 | |
| 12 | test('test1', exe_sha) |
| 13 | test('test1', exe_sta) |