Just like in staredit. On the units settings window, there will be boxes for the air and ground weapons. The second textbox in each is the bonus damage (how much each upgrade adds).
Note that for tanks and goliaths you have to set the damage on the turret, not the actual unit.