Debian Codegraph @

test cases/cmake/8 custom command/meson.build

raw
1 project('cmakeSubTest', ['c', 'cpp'])
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('cmMod')
10 sub_dep = sub_pro.dependency('cmModLib')
11
12 assert(sub_pro.target_type('cmModLib') == 'shared_library', 'Target type should be shared_library')
13 assert(sub_pro.target_type('gen') == 'executable', 'Target type should be executable')
14
15 exe1 = executable('main', ['main.cpp'], dependencies: [sub_dep])
16 test('test1', exe1)