CMake Build System

  1. Getting Started with CMake
    1. Installation and Verification
      1. Downloading CMake
        1. Installing on Windows
          1. Installer Packages
            1. Adding to PATH
            2. Installing on macOS
              1. Homebrew Installation
                1. MacPorts Installation
                2. Installing on Linux
                  1. Using Package Managers
                    1. Building from Source
                    2. Verifying Installation
                      1. Checking Version Output
                        1. Troubleshooting Installation Issues
                      2. The Basic CMakeLists.txt File
                        1. Structure of a CMakeLists.txt File
                          1. cmake_minimum_required Command
                            1. Specifying Minimum CMake Version
                              1. Version Policy Implications
                              2. project Command
                                1. Naming the Project
                                  1. Setting Project Version
                                    1. Setting Project Languages
                                    2. add_executable Command
                                      1. Adding Source Files
                                        1. Naming the Executable
                                      2. The CMake Workflow
                                        1. Configuration Step
                                          1. Source and Build Directory Separation
                                            1. Specifying Generator and Options
                                              1. Command-Line Syntax
                                              2. Generation Step
                                                1. Generating Native Build Files
                                                  1. Understanding Output Files
                                                  2. Build Step
                                                    1. Building Targets
                                                      1. Parallel Builds
                                                        1. Command-Line Options
                                                        2. Installation Step
                                                          1. Installing Binaries and Files
                                                            1. Customizing Install Locations
                                                          2. Common CMake Generators
                                                            1. Unix Makefiles
                                                              1. Features and Limitations
                                                              2. Ninja
                                                                1. Speed and Parallelism
                                                                  1. Installation Requirements
                                                                  2. Visual Studio
                                                                    1. Solution and Project Files
                                                                      1. Version Support
                                                                      2. Xcode
                                                                        1. Workspace and Project Integration