/cmake-basics

Using the CMake tutorial to test Travis-CI

Primary LanguageCMake

cmake-basics

cmake-basics build status

Code from the CMakeTutorial (http://www.cmake.org/cmake/help/cmake_tutorial.html)

Used to test the Travis CI (https://travis-ci.org/) Continuous Integration community service.

Copyright (c) 2013 SĂ©bastien Rombauts (sebastien.rombauts@gmail.com)

Building & testing with CMake

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

mkdir build
cd build
cmake ..        # cmake .. -G "Visual Studio 10"    # for Visual Studio 2010
cmake --build . # make
ctest .         # make test

### Debug build

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

### Release build

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

### Continuous Integration

This project is continuously tested under Ubuntu Linux with the gcc and clang compilers using the Travis CI community service with the above CMake building and testing procedure.

Detailed results can be seen online: https://travis-ci.org/SRombauts/cmake-basics