diff options
Diffstat (limited to 'meson/test cases/cmake/16 threads/meson.build')
-rw-r--r-- | meson/test cases/cmake/16 threads/meson.build | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meson/test cases/cmake/16 threads/meson.build b/meson/test cases/cmake/16 threads/meson.build new file mode 100644 index 000000000..5efd73ed5 --- /dev/null +++ b/meson/test cases/cmake/16 threads/meson.build @@ -0,0 +1,12 @@ +project('cmMod', ['c', 'cpp']) + +cm = import('cmake') +cmOpts = ['-DUSE_PTHREAD=@0@'.format(get_option('use_pthread'))] +cmMod = cm.subproject('cmMod', cmake_options: cmOpts) +cmModDep1 = cmMod.dependency('cmModLib') +cmModDep2 = cmMod.dependency('cmModLib_shared') + +exe1 = executable('exe1', ['main.cpp'], dependencies: [cmModDep1]) +exe2 = executable('exe2', ['main.cpp'], dependencies: [cmModDep2]) +test('exe1_OK', exe1) +test('exe2_OK', exe2) |