Skip to content

Instantly share code, notes, and snippets.

@Ben1980
Last active February 13, 2019 20:09
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 Ben1980/7b82fe93a50b08fdc7a0b9592e2a5923 to your computer and use it in GitHub Desktop.
Save Ben1980/7b82fe93a50b08fdc7a0b9592e2a5923 to your computer and use it in GitHub Desktop.
Standard CMake build commands
mkdir build //(1) We need a build directory
cd build
cmake .. //(2) Generating the the artifacts to build, if necesarry download Catch2 via -DDOWNLOAD_CATCH=1 parameter
make //(3) Build the binaries on linux, for windows you might need different commands, e.g. msbuild gravity.sln for a visual studio based build
ctest //(4) Running tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment