1.5. 安装 CMake 构建管理器

CMake 构建管理器是一种工具,它独立于您的编译器管理源代码的构建过程。Cmake 可以生成原生构建环境,以编译源代码、创建库、生成打包程序和构建可执行文件。
完成以下步骤以安装 CMake 构建管理器。

先决条件

流程

要安装 CMake,请运行以下命令:

  • 在 Red Hat Enterprise Linux 7 上:
# yum install llvm-toolset-15.0-cmake
  • 在 Red Hat Enterprise Linux 8 中:
# yum install cmake
  • 在 Red Hat Enterprise Linux 9 中:
# dnf install cmake

其他资源

  • 有关 CMake 构建管理器的更多信息,请参阅官方 CMake 文档概述 关于 CMake
  • 有关使用 CMake 构建管理器简介,请参阅: