1install_subdir('configurations',
2      strip_directory: true,
3      install_dir: get_option('datadir')/'phosphor-psu-monitor')
4
5phosphor_psu_monitor = executable(
6    'phosphor-psu-monitor',
7    'main.cpp',
8    'psu_manager.cpp',
9    'power_supply.cpp',
10    'util.cpp',
11    dependencies: [
12        cli11_dep,
13        libgpiodcxx,
14        nlohmann_json_dep,
15        phosphor_dbus_interfaces,
16        phosphor_logging,
17        sdbusplus,
18        sdeventplus,
19    ],
20    include_directories: '..',
21    install: true,
22    link_with: [
23        libpower,
24    ]
25)
26
27power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp')
28
29if get_option('tests').allowed()
30  subdir('test')
31endif
32