Why CMake ?

C++ application can be used cross platform. And this requires configuring the project for the corresponding compilers (ex. make, vs studio). This can be tedious. CMake is used to solve this problem.

CMake configures the setting for the compiler.

  1. It creates the vs studio project (or eclipse project).
  2. It manages the dependencies of a project’s executable
  3. Creates a build order.

When the project’s complexity increases (ex – multiple external dependencies), cmake will reduce the problem by defining it in CMakeLists.txt.

Leave a comment