1d0a26bb9SBrandon Wymaninstall_subdir('configurations', 2d0a26bb9SBrandon Wyman strip_directory: true, 3d0a26bb9SBrandon 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', 10c3324424SBrandon Wyman 'record_manager.cpp', 113f1242f3SBrandon Wyman 'util.cpp', 1257939e84SBrandon Wyman dependencies: [ 13*888bebdeSPatrick Williams cli11_dep, 14b76ab249SBrandon Wyman fmt, 15681b2a36SB. J. Wyman libgpiodcxx, 16*888bebdeSPatrick Williams nlohmann_json_dep, 17c9b05736SAdriana Kobylak phosphor_dbus_interfaces, 18*888bebdeSPatrick Williams phosphor_logging, 19*888bebdeSPatrick Williams sdbusplus, 20*888bebdeSPatrick Williams sdeventplus, 2157939e84SBrandon Wyman ], 22a0f33ce3SBrandon Wyman include_directories: '..', 23a0f33ce3SBrandon Wyman install: true, 24a0f33ce3SBrandon Wyman link_with: [ 25a0f33ce3SBrandon Wyman libpower, 26a0f33ce3SBrandon Wyman ] 27a0f33ce3SBrandon Wyman) 283f1242f3SBrandon Wyman 293f1242f3SBrandon Wymanpower_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp') 303f1242f3SBrandon Wyman 313f1242f3SBrandon Wymanif get_option('tests').enabled() 323f1242f3SBrandon Wyman subdir('test') 333f1242f3SBrandon Wymanendif 34