cmake stands for Cross-platform Make

The Configure and Generate Steps

no matter how you run cmake, it performs 2 steps:

  • configure step
  • generate step

Commands

  • cmake [options] <path-to-source>
  • cmake [options] <path-to-existing-build>
  • cmake [options] -S <path-to-source> -B <path-to-build>

Specifying Cmake Which Generator to Use

  • for a list of available generators, run
    cmake —help
  • to specify a generator use -G option followed by the generator
    cmake -G “Visual Studio 15 2017”

Intro Tutorial