project('gtest', 'cpp') gtest = dependency('gtest') e = executable('testprog', 'test.cc', deps : gtest) test('gtest test', e)