cmake CMake integration in GitHub CI tools Configure Travis CI with stock CMake


Travis CI has CMake 2.8.7 pre-installed.

A minimal .travis.yml script for an out-of source build

language: cpp

  - gcc

  # create a build folder for the out-of-source build
  - mkdir build
  # switch to build directory
  - cd build
  # run cmake; here we assume that the project's
  # top-level CMakeLists.txt is located at '..'
  - cmake ..

  # once CMake has done its job we just build using make as usual
  - make
  # if the project uses ctest we can run the tests like this
  - make test