blob: e2f1a37dbd08de20da04598785c3c620e7c74e91 [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
Shawn McCarneyff481432020-02-13 10:38:44 -060024if get_option('tests').enabled()
25 subdir('test')
26endif