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        sdbusplus,
13        sdeventplus,
14        fmt,
15        libgpiodcxx,
16    ],
17    include_directories: '..',
18    install: true,
19    link_with: [
20        libpower,
21    ]
22)
23
24power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp')
25
26if get_option('tests').enabled()
27  subdir('test')
28endif
29