How to package the game with Server Target setting?

How to use this cpp?