Skip to content

yyang768osu/cmake-basics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Using the CMake tutorial to test Travis-CI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 41.2%
  • C++ 41.0%
  • Batchfile 9.9%
  • Shell 7.9%