Cameroon set up a semi-final clash with Ghana on Wednesday at the All Africa Games after beating Senegal 1-0 on Sunday to finish top of Group B.
Jacques Nguemaleu scored after 19 minutes in Maputo to ensure the Cameroonians finished with four points, one more than the Senegalese.
Ghana secured their place in the last four after beating hosts in Group A on Saturday.
Group A winners South Africa will play Senegal in the other semi on Tuesday.
Wednesday's semi-final between Cameroon and Ghana will be played at the Maxaquene Stadium.
In the women's tournament semi-finals, South Africa will play Cameroon on Tuesday while Ghana will take on Algeria on Wednesday.
Ghana finished top of Group B following a 2-2 draw on Sunday with South Africa, who remain second.
Ghana opened the scoring through Elizabeth Cudjoe, only for South Africa to level through striker Andisiwe Mgcoyi's long-range effort.
Faiza Ibrahim then gave Ghana the lead in the 56th minute but Mgcoyi grabbed her second five minutes later to wrap up the scoring.
In the day's other game, Tanzania and Zimbabwe also played out a 2-2 draw - a result that left both sides without a win from the group.
Cameroon were the first team to qualify for the semi-finals of the women's tournament when beating Algeria 3-0 last week.
But Algeria recovered to sail into the semi-finals with a 7-1 trouncing of their Mozambican hosts on Saturday.