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