1install_subdir( 2 'configurations', 3 strip_directory: true, 4 install_dir: get_option('datadir') / 'phosphor-psu-monitor', 5) 6 7phosphor_psu_monitor = executable( 8 'phosphor-psu-monitor', 9 'main.cpp', 10 'psu_manager.cpp', 11 'power_supply.cpp', 12 'util.cpp', 13 dependencies: [ 14 cli11_dep, 15 libgpiodcxx, 16 nlohmann_json_dep, 17 phosphor_dbus_interfaces, 18 phosphor_logging, 19 sdbusplus, 20 sdeventplus, 21 ], 22 include_directories: '..', 23 install: true, 24 link_with: [libpower], 25) 26 27power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp') 28 29if get_option('tests').allowed() 30 subdir('test') 31endif 32