1*d0a26bb9SBrandon Wymaninstall_subdir('configurations',
2*d0a26bb9SBrandon Wyman      strip_directory: true,
3*d0a26bb9SBrandon Wyman      install_dir: get_option('datadir')/'phosphor-psu-monitor')
42ad76bd3SBrandon Wyman
53f1242f3SBrandon Wymanphosphor_psu_monitor = executable(
62ad76bd3SBrandon Wyman    'phosphor-psu-monitor',
72ad76bd3SBrandon Wyman    'main.cpp',
8a0f33ce3SBrandon Wyman    'psu_manager.cpp',
9aed1f75dSBrandon Wyman    'power_supply.cpp',
103f1242f3SBrandon Wyman    'util.cpp',
1157939e84SBrandon Wyman    dependencies: [
1257939e84SBrandon Wyman        sdbusplus,
132bac8609SBrandon Wyman        sdeventplus,
1457939e84SBrandon Wyman    ],
15a0f33ce3SBrandon Wyman    include_directories: '..',
16a0f33ce3SBrandon Wyman    install: true,
17a0f33ce3SBrandon Wyman    link_with: [
18a0f33ce3SBrandon Wyman        libpower,
19a0f33ce3SBrandon Wyman    ]
20a0f33ce3SBrandon Wyman)
213f1242f3SBrandon Wyman
223f1242f3SBrandon Wymanpower_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp')
233f1242f3SBrandon Wyman
243f1242f3SBrandon Wymanif get_option('tests').enabled()
253f1242f3SBrandon Wyman  subdir('test')
263f1242f3SBrandon Wymanendif
27