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
- Double-click to open cmake, drag CMakeLists.txt to the interface to release;
- Click "configure", drop down "Specify the generator for this project" to select a generation target;
- [Optional] Select the target platform type, the default is win32, you can choose x64;
- [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";
- Click "finish" to complete the configuration;
- If there is nothing wrong, click "Generate" to start generating the vc project.