Brad Bishop | 5906173 | 2019-10-07 15:48:37 -0400 | [diff] [blame] | 1 | average_unittest = executable( |
| 2 | 'average_unittest', |
| 3 | 'average_unittest.cpp', |
| 4 | dependencies: [ |
| 5 | gmock, |
| 6 | gtest, |
| 7 | ], |
| 8 | include_directories: '..', |
| 9 | link_with: [ |
| 10 | libaverage, |
| 11 | ], |
| 12 | ) |
| 13 | |
| 14 | env_unittest = executable( |
| 15 | 'env_unittest', |
| 16 | 'env_unittest.cpp', |
| 17 | dependencies: [ |
| 18 | gmock, |
| 19 | gtest, |
| 20 | ], |
| 21 | include_directories: '..', |
| 22 | ) |
| 23 | |
| 24 | fanpwm_unittest = executable( |
| 25 | 'fanpwm_unittest', |
| 26 | 'fanpwm_unittest.cpp', |
| 27 | dependencies: [ |
| 28 | gmock, |
| 29 | gtest, |
| 30 | phosphor_logging, |
Matt Spinler | 5e034af | 2020-06-24 15:21:53 -0500 | [diff] [blame] | 31 | fmt, |
Brad Bishop | 5906173 | 2019-10-07 15:48:37 -0400 | [diff] [blame] | 32 | ], |
| 33 | include_directories: '..', |
| 34 | link_with: [ |
| 35 | libfan_pwm, |
| 36 | ], |
| 37 | ) |
| 38 | |
| 39 | hwmon_unittest = executable( |
| 40 | 'hwmon_unittest', |
| 41 | 'hwmon_unittest.cpp', |
| 42 | dependencies: [ |
| 43 | gmock, |
| 44 | gtest, |
Matt Spinler | 5e034af | 2020-06-24 15:21:53 -0500 | [diff] [blame] | 45 | fmt, |
Brad Bishop | 5906173 | 2019-10-07 15:48:37 -0400 | [diff] [blame] | 46 | ], |
| 47 | include_directories: '..', |
| 48 | link_with: [ |
| 49 | libhwmon, |
| 50 | ], |
| 51 | ) |
| 52 | |
| 53 | hwmonio_default_unittest = executable( |
| 54 | 'hwmonio_default_unittest', |
| 55 | 'hwmonio_default_unittest.cpp', |
| 56 | dependencies: [ |
| 57 | gtest, |
| 58 | gmock, |
Matt Spinler | 5e034af | 2020-06-24 15:21:53 -0500 | [diff] [blame] | 59 | fmt, |
Brad Bishop | 5906173 | 2019-10-07 15:48:37 -0400 | [diff] [blame] | 60 | ], |
| 61 | include_directories: '..', |
| 62 | link_with: [ |
| 63 | libhwmonio, |
| 64 | ], |
| 65 | ) |
| 66 | |
| 67 | sensor_unittest = executable( |
| 68 | 'sensor_unittest', |
| 69 | 'gpio.cpp', |
| 70 | 'sensor_unittest.cpp', |
| 71 | dependencies: [ |
| 72 | gtest, |
| 73 | gmock, |
Matt Spinler | 5e034af | 2020-06-24 15:21:53 -0500 | [diff] [blame] | 74 | fmt, |
Brad Bishop | 5906173 | 2019-10-07 15:48:37 -0400 | [diff] [blame] | 75 | ], |
| 76 | include_directories: '..', |
| 77 | link_with: [ |
| 78 | libsensor, |
| 79 | ], |
| 80 | ) |