A simple project of cross-platform C++ development with SDL2, CMake and Google Test.
Copyright (c) 2018 Sébastien Rombauts (sebastien.rombauts@gmail.com)
Get Git submodule dependencies using:
submodule init
submodule update
Under Ubuntu 14.04 Trusty or above, install SDL2 dependencies using:
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
git submodule init
git submodule update
mkdir build
cd build
cmake .. # cmake .. -G "Visual Studio 15 2017 Win64" # for a 64 bits solution using Visual Studio 2017
cmake --build . # make
ctest . # make test
mkdir Debug
cd Debug
cmake .. -DCMAKE_BUILD_TYPE=Debug # -G "Unix Makefiles"
cmake --build . # make
ctest . # make test
mkdir Release
cd Release
cmake .. -DCMAKE_BUILD_TYPE=Release # -G "Unix Makefiles"
cmake --build . # make
ctest . # make test
This project is continuously tested under Ubuntu 14.04 "Trusty" Linux with gcc 4.8.4 and clang 5.0.0 compilers using the Travis CI community service with the above CMake building and testing procedure.
It is also tested in the same way under Windows with Visual Studio 14 2015 compiler using the AppVeyor countinuous integration service.
Detailed results can be seen online: