William A. Kennington III | 15982f6 | 2019-01-31 14:43:41 -0800 | [diff] [blame] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: build_tests) |
| 2 | gmock = dependency('gmock', disabler: true, required: build_tests) |
| 3 | |
| 4 | tests = [ |
| 5 | 'signal', |
William A. Kennington III | e847ef8 | 2018-11-02 17:29:15 -0700 | [diff] [blame^] | 6 | 'handle/copyable', |
William A. Kennington III | 7a5e232 | 2018-11-02 17:28:35 -0700 | [diff] [blame] | 7 | 'handle/managed', |
William A. Kennington III | 15982f6 | 2019-01-31 14:43:41 -0800 | [diff] [blame] | 8 | ] |
| 9 | |
| 10 | foreach t : tests |
| 11 | test(t, executable(t.underscorify(), t + '.cpp', |
| 12 | include_directories: includes, |
| 13 | implicit_include_directories: false, |
| 14 | link_with: stdplus, |
| 15 | dependencies: [gtest, gmock])) |
| 16 | endforeach |