2 Star 9 Fork 8

ZX / cmake-manual-cn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

cmake开发手册中文版

官方版本:https://cmake.org/cmake/help/latest/

翻译的官方版本:3.26.4

译者注

翻译:ZX
博客:https://www.cnblogs.com/zx-admin/
翻译问题反馈 QQ: 903464207

一些其他资料

cmake wiki:https://gitlab.kitware.com/cmake/community/-/wikis/home

Cmake中文实战教程: https://brightxiaohan.github.io/CMakeTutorial/

CMake Cookbook中文版:https://www.bookstack.cn/read/CMake-Cookbook/README.md

Modern CMake 简体中文版:https://www.bookstack.cn/read/Modern-CMake-CN-Modern-CMake-zh_CN/08ad6f6237beace2.md

CMake 保姆级教程(上):https://subingwen.cn/cmake/CMake-primer/
CMake 保姆级教程(下):https://subingwen.cn/cmake/CMake-advanced/

介绍

CMake是一个管理源代码构建的工具。最初,CMake被设计为各种方言Makefile的生成器,今天CMake生成现代构建系统,如Ninja,以及ide(如Visual Studio和Xcode)的项目文件。

CMake广泛用于C和c++语言,但它也可以用于构建其他语言的源代码。

第一次接触CMake的人可能有不同的初始目标。要了解如何构建从互联网下载的源代码包,请从用户交互指南开始。这将详细介绍运行cmake(1)cmake-gui(1)可执行文件所需的步骤,以及如何选择生成器,以及如何完成构建。

使用依赖指南针对的是希望开始使用第三方库的开发人员。

对于使用CMake开始项目的开发人员来说,CMake教程是一个合适的起点。CMake -buildsystem(7)手册旨在扩展开发人员维护构建系统的知识,并熟悉可以在CMake中表示的构建目标。cmake-packages(7)手册解释了如何创建可以被第三方基于cmake的构建系统轻松使用的包。

使用说明

采用gitbook编写,建议要自己导出html或者pdf,使用node版本v10.24.1,过新的版本会导致编译出错,多版本建议是用nvm

GitBook生成PDF依赖calibre

下载3.x版本,否则在gitbook pdf的过程中会卡住
打开3.48.0下载地址: https://download.calibre-ebook.com/3.48.0/

如果还是不能导出pdf,就重启一下,可能是环境变量未重新加载

### 安装
$ npm install gitbook-cli -g

### 安装插件
$ gitbook install

### 以http服务访问
$ gitbook serve

### 编译成html方式发布
$ gitbook build

### 导出pdf
$ gitbook pdf

目录

MIT License Copyright (c) 2023 Z.X Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

cmake中文手册 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/open-php/cmake-manual-cn.git
git@gitee.com:open-php/cmake-manual-cn.git
open-php
cmake-manual-cn
cmake-manual-cn
master

搜索帮助