If you are in the main menu of the game, to exit you just simply need to press the Quit button that is situated in the bottom right corner. From the campaign, in order to exit the game, you first need to press the Pause button that is situated in the bottom right corner and then Quit.