Skip to content

SRombauts/sdlman

Repository files navigation

sdlman

Travis CI Linux Build Status AppVeyor Windows Build status

A simple project of cross-platform C++ development with SDL2, CMake and Google Test.

Copyright (c) 2018 Sébastien Rombauts (sebastien.rombauts@gmail.com)

Building & testing with CMake

Get Git submodule dependencies using:

submodule init
submodule update

Linux Dependencies

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

Get Google Test submodule

git submodule init
git submodule update

Typical generic build (see also "build.bat" or "./build.sh")

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

Debug build for Unix Makefiles

mkdir Debug
cd Debug
cmake .. -DCMAKE_BUILD_TYPE=Debug   # -G "Unix Makefiles"
cmake --build . # make
ctest .         # make test

Release build

mkdir Release
cd Release
cmake .. -DCMAKE_BUILD_TYPE=Release  # -G "Unix Makefiles"
cmake --build . # make
ctest .         # make test

Continuous Integration

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:

About

Test SDL2 with CMake Travis CI AppVeyor...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages