1psu_monitor = executable( 2 'psu-monitor', 3 error_hpp, 4 'main.cpp', 5 'power_supply.cpp', 6 'record_manager.cpp', 7 dependencies: [ 8 cli11_dep, 9 nlohmann_json_dep, 10 phosphor_dbus_interfaces, 11 phosphor_logging, 12 sdbusplus, 13 sdeventplus, 14 ], 15 include_directories: '..', 16 install: true, 17 link_with: [libpower], 18) 19 20record_manager = psu_monitor.extract_objects('record_manager.cpp') 21 22if get_option('tests').allowed() 23 subdir('test') 24endif 25