Meanwhile, the Great Britain women's team will face New Zealand in Cardiff in the first event of the Olympic Games on July 25, two days before the opening ceremony.
Stuart Pearce's men's side face an opening fixture against Senegal at Old Trafford on July 26, before playing the UAE at Wembley on July 29 and Uruguay in Cardiff on August 1.
The top two teams from each group go through to the quarter-finals in the men's competition.
Meanwhile, Hope Powell's women's team have been given a glamour tie against Brazil in their group and will also face Cameroon.
Cardiff plays host to their first two games against New Zealand and Cameroon, before they move to Wembley for the plum fixture against Brazil.
The women's draw has only 12 teams as opposed to the 16 in the men's draw.
The top two teams from each group and the two best third-placed teams qualify for the quarter-finals.
OLYMPIC FOOTBALL - MEN'S GROUP STAGE DRAW
Group A: Great Britain, Uruguay, UAE, Senegal
Group B: Mexico, South Korea, Switzerland, Gabon
Group C: Brazil, Belarus, New Zealand, Egypt
Group D: Spain, Honduras, Japan, Morocco
OLYMPIC FOOTBALL - WOMEN'S GROUP STAGE DRAW
Group E: Great Britain, Cameroon, New Zealand, Brazil
Group F: Japan, Sweden, South Africa, Canada
Group G: USA, France, Colombia, North Korea