Or you can measure the thrust while letting the airplane slowly move forward (on a smooth surface of course), then measure the thrust while pulling the airplane backward. Split the difference for the true static thrust.
But of course the thrust generated varies as the airspeed of the airplane changes. The only time the static thrust matters is in a hover.