01/26/2016 13:26 EST | Updated 01/26/2017 00:12 EST

Canada's men's basketball team will need to beat France, Turkey to get to Rio

MIES, Switzerland — Canada's men's basketball team will have to knock of No. 5-ranked France to earn a berth in this summer's Rio Olympics.

The Canadians will play in a last-chance qualifying tournament in Manila, July 4-10, where they'll also face Turkey (No. 8), New Zealand (21), host Philippines (28), and Senegal (31).  

No. 26-ranked Canada, drawn Tuesday in Group A with Turkey and Senegal, needs to win the tournament to earn a berth in Rio.

Eighteen teams are fighting for three final spots in Rio, and were drawn into three six-team tournaments.

Of the 18, Canada will face the top two ranked in France and Turkey.

Rasho Nesterovic and Jorge Garbajosa, both former Toronto Raptors, did the drawing.

Canada was relegated to the last-chance qualifier after finishing third at the FIBA Americas tournament in September.

The Canadians saw their Olympic dreams dwindle at the tournament with an upset 79-78 loss to Venezuela in the semifinals.

Canada's men's team hasn't played at the Olympics since the 2000 Sydney Games.

The Canadian women won their FIBA Americas tournament in Edmonton to earn a berth in Rio.   

The Canadian Press