Skip to content

Instantly share code, notes, and snippets.

@tcoppex
Created October 29, 2021 13:49
Show Gist options
  • Save tcoppex/c9e6fb3795ce0232ce327e092f682b12 to your computer and use it in GitHub Desktop.
Save tcoppex/c9e6fb3795ce0232ce327e092f682b12 to your computer and use it in GitHub Desktop.
CMake "Build & Run" command for sublime-text on GNU/Linux.
{
"shell_cmd": "mkdir -p BUILD && cd BUILD && cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build . -- -j 7 && `file $folder/bin/* | grep interpreter | sed 's/:.*//'`",
"keyfile": "CMakeLists.txt",
"working_dir": "$folder",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment