When your troops land, they create a colony. You can go into the Colony View, click on Ground Units tab and then from a pull-down menu select who to attack. You cannot attack both at the same time, though each 5 days you can change the target. If you do not have out-power the enemy, do not attack as you'll just be wasting your forces. On the defensive they can whittle the enemy strength away while you ship in more troops.