The project uses CMake as a project and build system generator.
Clone the repositoty git clone https://github.com/bokrosf/snake
Setup the project with the platform specific init script. It generates a Debug mode build system with CMake and obtains the 3rd party libraries, copies their headers to the newly created lib folder.
scripts/linux/init.sh
uses the default CMake generator.scripts/windows/init.ps1
uses MinGW MakeFiles generator but it can be modified by editing the init.ps1 file. MinGW releasesBuild the project
cd build/debug
cmake --build .
Create Release mode build system
mkdir -p build/release
cd build/release
cmake -DCMAKE_BUILD_TYPE=Release ..
If necessary specify the generator. For example to use MinGW on Windows: cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release