William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -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 | 'clock', |
| 6 | 'event', |
| 7 | 'exception', |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 8 | 'internal/utils', |
| 9 | 'source/base', |
| 10 | 'source/child', |
| 11 | 'source/event', |
| 12 | 'source/io', |
| 13 | 'source/signal', |
| 14 | 'source/time', |
| 15 | 'utility/timer', |
| 16 | ] |
| 17 | |
| 18 | foreach t : tests |
| 19 | test(t, executable(t.underscorify(), t + '.cpp', |
| 20 | include_directories: includes, |
| 21 | implicit_include_directories: false, |
| 22 | link_with: sdeventplus, |
| 23 | dependencies: [gtest, gmock])) |
| 24 | endforeach |