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