Currently Im using VSCode launch.json to launch compile and run commands, like this:
{ "name": "Cmake + Compile Emulator ",