blob: d2251bf63427c917c3227154678f021410549eb6 [file] [log] [blame]
Brad Bishop39b370a2019-09-02 02:37:32 -04001psu_monitor = executable(
2 'psu-monitor',
Brad Bishop39b370a2019-09-02 02:37:32 -04003 error_hpp,
4 'main.cpp',
5 'power_supply.cpp',
6 'record_manager.cpp',
7 dependencies: [
Patrick Williams9c446cd2023-09-01 15:25:11 -05008 cli11_dep,
Patrick Williams888bebd2023-05-31 19:19:49 -05009 nlohmann_json_dep,
Brad Bishop39b370a2019-09-02 02:37:32 -040010 phosphor_dbus_interfaces,
11 phosphor_logging,
12 sdbusplus,
Patrick Williams888bebd2023-05-31 19:19:49 -050013 sdeventplus,
Brad Bishop39b370a2019-09-02 02:37:32 -040014 ],
15 include_directories: '..',
16 install: true,
17 link_with: [
18 libpower,
19 ]
20)
21
22record_manager = psu_monitor.extract_objects('record_manager.cpp')
23
Patrick Williams5c6a6932023-11-29 06:44:29 -060024if get_option('tests').allowed()
Shawn McCarneyff481432020-02-13 10:38:44 -060025 subdir('test')
26endif