CMake入门

Cmake是什么?

(摘自官网https://cmake.org/)
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 generate native makefiles and workspaces that can be used in the compiler environment of your choice. The suite of CMake tools were created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK.

(翻译)
CMake是一个开源的,跨平台的工具套件,用以构建,测试和打包代码。CMake利用简单的平台和独立于编译器的配置文件来控制编译过程,并生成可用于选定编译环境的makefile文件和工作空间(workspace). CMake工作套件由Kitware创建,用以满足开源软件(如ITK,VTL等)对强大的,跨平台的构建环境的需求。

为什么要使用Cmake?

  • CMake 带来效率
    CMake 使程序员可以专注于代码而不用费事去折腾编译系统

  • CMake 很强大
    Cmake 支持多种开发环境和编译环境
    CMake 支持多种编程语言 C/C++/CUDA/Fortran/Python,
    Cmake 支持持续集成
    Cmake 支持将第三方库引入项目

  • Cmake俨然成为了C++ 项目开发的标准

安装Cmake

deepin

sudo apt install cmake
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值