The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
380 B
14 lines
380 B
4 years ago
|
project('cmakeSharedModule', ['c', 'cpp'])
|
||
|
|
||
|
cm = import('cmake')
|
||
|
|
||
|
sub_pro = cm.subproject('cmMod')
|
||
|
sub_dep = sub_pro.dependency('myMod')
|
||
|
|
||
|
dl = meson.get_compiler('c').find_library('dl', required: false)
|
||
|
|
||
|
l = shared_library('runtime', 'runtime.c')
|
||
|
e = executable('prog', ['prog.c'], link_with: l, dependencies: [sub_dep, dl])
|
||
|
m = sub_pro.target('myMod')
|
||
|
test('test1', e, args : m)
|