Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 1 | psu_monitor = executable( |
| 2 | 'psu-monitor', |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 3 | error_hpp, |
| 4 | 'main.cpp', |
| 5 | 'power_supply.cpp', |
| 6 | 'record_manager.cpp', |
| 7 | dependencies: [ |
Patrick Williams | 9c446cd | 2023-09-01 15:25:11 -0500 | [diff] [blame^] | 8 | cli11_dep, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 9 | nlohmann_json_dep, |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 10 | phosphor_dbus_interfaces, |
| 11 | phosphor_logging, |
| 12 | sdbusplus, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 13 | sdeventplus, |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 14 | ], |
| 15 | include_directories: '..', |
| 16 | install: true, |
| 17 | link_with: [ |
| 18 | libpower, |
| 19 | ] |
| 20 | ) |
| 21 | |
| 22 | record_manager = psu_monitor.extract_objects('record_manager.cpp') |
| 23 | |
Shawn McCarney | ff48143 | 2020-02-13 10:38:44 -0600 | [diff] [blame] | 24 | if get_option('tests').enabled() |
| 25 | subdir('test') |
| 26 | endif |