Skip to content

Instantly share code, notes, and snippets.

@pedro-stanaka
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save pedro-stanaka/cfad31e5aa5e5d8ed714 to your computer and use it in GitHub Desktop.

Select an option

Save pedro-stanaka/cfad31e5aa5e5d8ed714 to your computer and use it in GitHub Desktop.
#!/bin/bash
# If there is not a build folder, create it
[ ! -d "build" ] && mkdir build
# Write build files inside build folder
cmake . -B./build
# Build the project using 8 parallel threads
# Let the user input additional parameters like:
# --clean-first OR --target <target_name>
cmake --build build $@ -- -j 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment