All of the code is in newton.cpp. run.sh is a convenience program for CMake to compile and run the code ( it works on my machine ), CMakeLists.txt, .gitmodules, and .gitignore are config files, and autodiff and eigen are header only dependencies packaged as a git submodule.
Currently, I have only tested it on linux, so I am not sure how it will work for windows.
Clone the repo with --recursive
so that you get the autodiff dependency.
./run.sh
This script assumes that you have a POSIX compliant shell, like bash, and the linux version of CMake ( I am not sure if the syntax is any different on other platforms ). If you need to dig into the weeds a bit more to compile the project, all CMake is currently doing is compiling newton.cpp and adding autodiff and eigen as include directories. This should be possible to do with just a few flags with any c++ compiler.