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 'record_manager.cpp', 11 'util.cpp', 12 dependencies: [ 13 sdbusplus, 14 sdeventplus, 15 fmt, 16 libgpiodcxx, 17 phosphor_dbus_interfaces, 18 ], 19 include_directories: '..', 20 install: true, 21 link_with: [ 22 libpower, 23 ] 24) 25 26power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp') 27 28if get_option('tests').enabled() 29 subdir('test') 30endif 31