Your air attack will attack whatever you've set it for. (Bases,turets) are attacked when you attack a square. However if you select to attack a unit it will "follow" that unit when and if it moves.
If the unit shares its space with a base, turet, etc. it will attack them as well.