One of the CMake series: Concepts

Different make tools follow different specifications and standards, so different Makefiles are required for different standards. CMake uses a platform-independent CMakeList.txt file to customize the compilation process, and generates localized Makefiles and project files according to the target user's platform.

Process under Linux:

  1. Write the CMake configuration file CMakeLists.txt.
  2. Execute the command cmake Path to generate the Makefile. where PATH is the directory where CMakeLists.txt is located.
  3. Compile using the make command.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324604765&siteId=291194637