summaryrefslogtreecommitdiffstats
path: root/test cases/cmake/24 mixing languages/meson.build
blob: 4ab1d85420077f23ff18ca6590423f1ffac02963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
project('CMake mix', ['c', 'cpp'])

if not add_languages('objc', required : false)
  error('MESON_SKIP_TEST: No ObjC compiler')
endif

cm = import('cmake')

sub_pro = cm.subproject('cmTest')
sub_dep = sub_pro.dependency('cmTest', include_type: 'system')

exe1 = executable('exe1', ['main.c'], dependencies: [sub_dep])
test('test1', exe1)