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', |
| 8 | 'internal/sdref', |
| 9 | 'internal/utils', |
| 10 | 'source/base', |
| 11 | 'source/child', |
| 12 | 'source/event', |
| 13 | 'source/io', |
| 14 | 'source/signal', |
| 15 | 'source/time', |
| 16 | 'utility/timer', |
| 17 | ] |
| 18 | |
| 19 | foreach t : tests |
| 20 | test(t, executable(t.underscorify(), t + '.cpp', |
| 21 | include_directories: includes, |
| 22 | implicit_include_directories: false, |
| 23 | link_with: sdeventplus, |
| 24 | dependencies: [gtest, gmock])) |
| 25 | endforeach |