ERROR: Game target not found

After converting project to c++ to compile project, I started getting this error-
ERROR: Game target not found. Game target is required with -cook or -cookonthefly

Anybody knows what gametarget is?

Does anybody know what to do here? I just got the very same error after adding c++ to the project. Cooking aborts immediately.