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: [
18        libpower,
19    ]
20)
21
22record_manager = psu_monitor.extract_objects('record_manager.cpp')
23
24if get_option('tests').allowed()
25    subdir('test')
26endif
27