The base cmake setup for SCalc assignment.
Author: Braedy Kuzma ([email protected])
Updated by: Deric Cheung ([email protected])
Updated by: Quinn Pham ([email protected])
- Follow the setup instructions so that git, java, clang, cmake (>= v3.0) and ANTLR are installed.
- Make sure that ANTLR_INS and ANTLR_JAR are set in your environment
- Make a directory that you intend to build the project in and change into that directory.
- Run
cmake <path-to-SCalc-Base>
. - Run
make
. - Done.
If there are updates to your assignment you can retrieve them using the instructions here.
- Add the upstream as a remote using
git remote add upstream <clone-link>
. - Fetch updates from the upstream using
git fetch upstream
- Merge the updates into a local branch using
git merge <local branch> upstream/<upstream branch>
. Usually both branches aremaster
. - Make sure that everything builds before committing to your personal master! It's much easier to try again if you can make a fresh clone without the merge!
Once the remote has been added, future updates are simply the fetch
and
merge
steps.