| 1 |
project('cmake_object_lib_test', 'cpp', default_options: ['cpp_std=c++11']) |
| 2 |
|
| 3 |
if meson.is_cross_build() |
| 4 |
error('MESON_SKIP_TEST this test does not cross compile correctly.') |
| 5 |
endif |
| 6 |
|
| 7 |
cm = import('cmake') |
| 8 |
|
| 9 |
sub_pro = cm.subproject('cmObjLib') |
| 10 |
sub_sha = sub_pro.dependency('lib_sha') |
| 11 |
sub_sta = sub_pro.dependency('lib_sta') |
| 12 |
|
| 13 |
exe_sha = executable('shared', ['main.cpp'], dependencies: [sub_sha]) |
| 14 |
exe_sta = executable('static', ['main.cpp'], dependencies: [sub_sta]) |
| 15 |
|
| 16 |
test('test1', exe_sha) |
| 17 |
test('test1', exe_sta) |