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
506 B
15 lines
506 B
5 years ago
|
# on Ubuntu this test requires libgtest-dev
|
||
|
project('gtest', 'cpp')
|
||
|
|
||
|
gtest = dependency('gtest', main : true, required : false)
|
||
|
if not gtest.found()
|
||
|
error('MESON_SKIP_TEST: gtest not installed.')
|
||
|
endif
|
||
|
gtest_nomain = dependency('gtest', main : false, method : 'system')
|
||
|
|
||
|
e = executable('testprog', 'test.cc', dependencies : gtest)
|
||
|
test('gtest test', e, protocol : 'gtest')
|
||
|
|
||
|
e = executable('testprog_nomain', 'test_nomain.cc', dependencies : gtest_nomain)
|
||
|
test('gtest nomain test', e, protocol : 'gtest')
|