1gtest = dependency('gtest', main: true, disabler: true, required: build_tests) 2gmock = dependency('gmock', disabler: true, required: build_tests) 3 4tests = [ 5 'erase/verifyGeometry_test', 6 'erase/pattern_test', 7 'erase/zero_test', 8 'erase/crypto_test', 9 'erase/sanitize_test', 10 'estoraged_test', 11 'util_test', 12] 13 14test_eStoraged_headers = include_directories('include') 15 16foreach t : tests 17 test(t, executable(t.underscorify(), t + '.cpp', 18 implicit_include_directories: false, 19 dependencies: [ 20 gtest, 21 gmock, 22 libeStoraged, 23 ], 24 include_directories: [eStoraged_headers, test_eStoraged_headers])) 25endforeach 26