You will need cmake and libSDL2 installed on your system.
Clone the code
git clone https://github.com/SeniourMarquies/Cave-story
Go into source directory
cd Cave-story
Create and go into build directory
mkdir build
cd build
Build the code
cmake ..
make
Run it
./Cave