Skip to content

Instantly share code, notes, and snippets.

@andreibosco
Last active January 14, 2017 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreibosco/7241123 to your computer and use it in GitHub Desktop.
Save andreibosco/7241123 to your computer and use it in GitHub Desktop.
sublime text 3: build and run C++ openGL code on linux
{
"cmd": ["g++ $file -o $file_base_name -L/usr/local/lib -lglut -lGL -lGLU"],
"shell": true,
"selector": "main.cpp",
"variants":
[
{
"name": "Run",
"cmd": "g++ $file -o $file_base_name -L/usr/local/lib -lglut -lGL -lGLU && ${file_path}/./${file_base_name}",
"shell": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment