Basic usage sharing of cmake to generate vc project

What is cmake?

For vc developers, it is crude and imprecise to say that cmake is just a tool for generating vc projects.

In fact, cmake can not only generate vc projects, but also generate other files needed for code compilation such as makefiles.

basic use

  1. Double-click to open cmake, drag CMakeLists.txt to the interface to release;
  2. Click "configure", drop down "Specify the generator for this project" to select a generation target;
  3. [Optional] Select the target platform type, the default is win32, you can choose x64;
  4. [Optional] The name of the tool set used during compilation is generally empty. If there is a special need, you can write an additional one. For example, if vs2012 supports xp, just write "v110_xp";
  5. Click "finish" to complete the configuration;
  6. If there is nothing wrong, click "Generate" to start generating the vc project.

Guess you like

Origin blog.csdn.net/henysugar/article/details/108596152