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.
15 lines
487 B
15 lines
487 B
6 years ago
|
project('introspection', ['c', 'cpp'], version: '1.2.3', default_options: ['cpp_std=c++11', 'buildtype=debug'])
|
||
6 years ago
|
|
||
6 years ago
|
dep1 = dependency('threads')
|
||
6 years ago
|
|
||
|
subdir('sharedlib')
|
||
|
subdir('staticlib')
|
||
|
|
||
|
t1 = executable('test1', 't1.cpp', link_with: [sharedlib], install: true)
|
||
|
t2 = executable('test2', 't2.cpp', link_with: [staticlib])
|
||
|
t3 = executable('test3', 't3.cpp', link_with: [sharedlib, staticlib], dependencies: [dep1])
|
||
|
|
||
|
test('test case 1', t1)
|
||
|
test('test case 2', t2)
|
||
|
benchmark('benchmark 1', t3)
|