cmake入门

目录

  • cmake 安装

cmake 安装

官网https://cmake.org/下载最新稳定版本 cmake-3.27.8-linux-x86_64.tar.gz, 这样的好处可以方便查找帮助文档,方便查看cmake内部的资料.

tar -zxvf cmake-3.27.8-linux-x86_64.tar.gz
sudo mv cmake-3.27.8-linux-x86_64 /opt/
sudo vim /etc/profile
#增加
export PATH="/opt/cmake-3.27.8-linux-x86_64/bin:$PATH"
source /etc/profile
cmake --version
#显示安装成功
cmake version 3.27.8

CMake suite maintained and supported by Kitware (kitware.com/cmake).

/opt/cmake-3.27.8-linux-x86_64/doc/cmake/html为网页帮助文档.

你可能感兴趣的:(编程语言,cmake)