For game executable under "Build Options" put:

C:Program FilesSteamSteam.exe

then when you compile it, for the $game_exe parameters put:

+map $file -applaunch 10 -dev -console +deathmatch 1

in this case it launches counter strike with your map. For other programs:

Team Fortress: -applaunch 20
DOD: -applaunch 30
Half-Life: -applaunch 70
Ricochet: -applaunch 60