Git Product home page Git Product logo

modern-cmake-cn / modern-cmake-zh_cn Goto Github PK

View Code? Open in Web Editor NEW
609.0 6.0 77.0 9.73 MB

CMake 教程 Modern-CMake 的简体中文翻译,中文版 Gitbook :https://modern-cmake-cn.github.io/Modern-CMake-zh_CN/ Chinese(simplified) translation of famous cmake tutorial Modern CMake. GitHub Pages : https://modern-cmake-cn.github.io/Modern-CMake-zh_CN/

License: Other

CMake 73.76% C++ 22.25% C 3.99%
cmake modern-cmake chinese-translation chinese-simplified chinese book cmake-tutorial tutorial

modern-cmake-zh_cn's Issues

建议标题

CMake版本问题以及建议

目前 cmake 已经由 kitware 支持维护
apt官方源的版本过低且貌似不在跟进更新的版本(没有足够的资料支持 尚不确定),如果直接apt install 将会得到很低的版本,或许并不是很 modren

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get install cmake

以上方法可以增加 kitware 仓库,并更新最新的版本支持。

可考虑将此方案添加为新的章节或者作为附注插入文本中。

章节文本纠错

https://modern-cmake-cn.github.io/Modern-CMake-zh_CN/chapters/testing/googletest.html

在GoogleTest章节,标题“下载的方式”

你可以通过 CMake 的 include 指令使用使用我在 [CMake helper repository](https://github.com/CLIUtils/cmake) 中的下载器,

这是一个 [GoogleTest](https://github.com/google/googletest) 的下载其,基于优秀的 [DownloadProject](https://github.com/Crascit/DownloadProject) 工具。为每个项目下载一个副本是使用 GoogleTest 的推荐方式(so much so, in fact, that they have disabled the automatic CMake install target), so this respects that design decision. 这个方式在项目配置时下载 GoogleTest,所以 IDEs 可以正确的找到这些库。这样使用起来很简单:

下载其 -> 下载器

翻译进度

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.