I just played my first full campaign and the game ended just after I finished taking about half of the map or so.

Does the game automatically end if you take X number of provinces, or can I play to win the whole map?

I want to fight everybody.