CMake column includes: project construction, command line usage, building project instance, dynamic library, static library, object library, CMake variable, qt build, qt project management, CMake related API, file API, protrolbuf, compilation parameter setting, custom section Three-party library, custom module, installation of third-party module, use of boost library, etc., a total of about 50 articles
Introduction to CMake
CMake is an open-source, cross-platform family of tools designed to build, test, and package software. CMake is used to control the software compilation process using simple platform- and compiler-independent configuration files, and to generate native makefiles and workspaces that can be used in the compiler environment of your choice. The CMake toolkit was created by Kitware in response to the need for a powerful cross-platform build environment from open source projects such as ITK and VTK.
CMake is part of Kitware's collection of commercially supported open source software development platforms.
CMake download
Summary of CMake learning materials
-
CMake official tutorial https://cmake.org/cmake/help/latest/guide/tutorial/index.html
-
CMake official documentation https://cmake.org/cmake/help/latest/index.html
-
My column analyzes a large number of examples, which are better than the above. You can look down the table of contents.
CMake Getting Started Tutorial Navigation
Manual
- CMake Introductory Tutorial [Manual] vs2022+nmake Build Project and Compile Project Environment Construction
- CMake Getting Started Tutorial [Manual] CMake Generates and Compiles Projects
Basic
-
CMake Getting Started Tutorial [Basic] 2.aux_source_directory Add source files
-
CMake Getting Started Tutorial [Basic] 3.set contains multiple .cpp.hpp.h files
-
CMake Getting Started Tutorial [Basic] 5.configure_file build configuration
-
CMake Getting Started Tutorial [Core] 7.1 Project Version Number Macro
-
CMake Getting Started Tutorial [Core] hello module
-
CMake Getting Started Tutorial [Core] Using the Boost Library
-
CMake Getting Started Tutorial [Core] Various Version Macros
-
CMake Getting Started Tutorial [Core] Installing Custom Libraries
-
CMake Introductory Tutorial [qt] qmake to cmake and instructions
-
CMake Getting Started Tutorial [qt] Qt Build Tool
-
CMake Getting Started Tutorial [qt] vs Project Generation
-
CMake Getting Started Tutorial [qt] qtmain.lib
Advanced
- CMake Getting Started Tutorial [Advanced] Compilation Parameters
- CMake Getting Started Tutorial [Advanced] cmake-toolchains
- CMake Getting Started Tutorial [Advanced] cpack
- CMake Getting Started Tutorial [Advanced] cmake-file-api file api
- CMake Getting Started Tutorial [Advanced] cmake-policies
- CMake Getting Started Tutorial [Advanced] cmake-modules module
- CMake Getting Started Tutorial [Advanced] cmake-commands all commands
- CMake Getting Started Tutorial [Advanced] cmake-configure-log
- CMake Getting Started Tutorial [Advanced] protrolbuf
Examples
- CMake Getting Started Tutorial [Example] 01. The first program
- CMake Introductory Tutorial [Example] 02. Including header file examples
- CMake Getting Started Tutorial [Example] 03. Create a static library
- CMake Getting Started Tutorial [Example] 04. Create a shared library
- CMake Getting Started Tutorial [Example] 05. Installer
- CMake Introductory Tutorial [Example] 06. Compilation Type (Debug/Release/MinSizeRel/RelWithDebInfo)
- CMake Introductory Tutorial [Example] 07. Compile parameter transfer macro definition
- CMake Getting Started Tutorial [Example] 08. Using third-party libraries