Last active
August 29, 2015 14:23
-
-
Save pedro-stanaka/cfad31e5aa5e5d8ed714 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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