blob: 9b1d423078fe7da628c4e68529da0db3c3ae2879 [file] [log] [blame]
install_subdir('configurations',
strip_directory: true,
install_dir: get_option('datadir')/'phosphor-psu-monitor')
phosphor_psu_monitor = executable(
'phosphor-psu-monitor',
'main.cpp',
'psu_manager.cpp',
'power_supply.cpp',
'util.cpp',
dependencies: [
cli11_dep,
libgpiodcxx,
nlohmann_json_dep,
phosphor_dbus_interfaces,
phosphor_logging,
sdbusplus,
sdeventplus,
],
include_directories: '..',
install: true,
link_with: [
libpower,
]
)
power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp')
if get_option('tests').allowed()
subdir('test')
endif