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