本文介绍了CMake教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 任何人都可以提供链接到良好的CMake教程,除非非常昂贵和难以获得官方一个? 在使用CMake for Fortran项目时特别有趣,但会感谢任何好的教程。 更新。 我已经找到的是 CMake文章在Kitware公共维基。 Fortran示例绝对无用。 =(同时等待答案我在玩 SCons 。看起来不错。=)解决方案首先,我推荐一个非常好的介绍演讲, CMake 以及Bill Hoffman在YouTube上提供的相关工具: / p> CMake / CPack / CTest / CDash Open源工具构建测试和部署C ++软件 接下来,快速概述并感觉 CMake scripting ,快速简单示例,还有一点 CMake语法,因此它将帮助您阅读CMake脚本。 现在,您可以立即开始使用教程,它在CMake CVS中提供。这是在掌握CMake书中使用的没有谈话,但代码教程材料。 当然,您需要参考手册以了解各种宏的详细信息。 抓住CMake的基础后,您可以开始挖掘更高级的技术以及读取现有的CMakeLists.txt文件 对于具有正确注释的现实生活中的例子,检查Bruno Abinader的两部分教程: =http://web.archive.org/web/20101030232202/http://cabledogs.org/abinader/2009/12/09/how-cmake-simplifies-the-build-process-part-2-advanced- build-system /rel =nofollow noreferrer>第2部分 - 高级构建系统 我还可以向CMAKE推荐经验方法 我还发现用于CMake脚本的KDE文档非常有用。它包括非常好的介绍开发/教程/ CMake 。然而,一些KDE的特定功能和自定义宏可能会有点令人不安。 我最近开始学习CMake,我相信这是一个很好的材料。此外,不要忘记CMake邮件列表与非常有用的社区。 教程从掌握CMake现在在线! - Bill Hoffman刚刚在邮件列表上公布。这里是网络上的CMake教程 学习CMake(PDF) - 由 Pau Garcia i Quiles CMake:入门 - MASH项目维基的综合教程。 以下是2012年3月录制的网络研讨会视频 - CMake简介,强烈推荐。 这里是Git存储库与 这是一个50页的PDF与 Pau Garcia i Quiles学习CMake 。 Fortran开发人员,但不仅可以找到这两篇文章有用: LAPACK库如何使Microsoft Visual Studio支持CMake和LAPACKE (PDF) Fortran for C / C ++开发人员使用CMake 更容易 请在下面的评论中报告任何断开的链接。 Can anyone provide link(s) to good CMake tutorial except very expensive and hard-to-get official one?Especially interesting in using CMake for Fortran projects but will be grateful for any good tutorial.Update.What I already found is CMake articles in Kitware Public Wiki. Fortran example is absolutely useless. =( Also while waiting for answers I'm playing with SCons. Looks nice. =) 解决方案 First, I recommend a very good introduction lecture to CMake and related tools by Bill Hoffman available on YouTube:CMake/CPack/CTest/CDash Open Source Tools to Build Test and Deploy C++ SoftwareNext, take a quick overview and feel CMake scripting, quick and simple examples and also a bit of taste of CMake syntax, so it will help you to read CMake scripts.Now, you can get immediately to hands on Tutorial which is available in CMake CVS. It is no talk, but code tutorial material which is used in the mastering CMake book.Certainly, you will need to refer to the manual to learn details about various macros.After you grasp foundations of CMake, you can start digging into more advanced techniques as well as read existing CMakeLists.txt files to see how others hack CMake scripts.For real life examples with proper comments, check Bruno Abinader's two-parts tutorial:Part 1 - Basic build systemPart 2 - Advanced build systemI can also recommend Empirical approach to CMAKEI also found KDE documentations for CMake scripting very useful. It includes a very good introduction Development/Tutorials/CMake. However, some KDE specific features and custom macros may be a little disturbing.I have started learning CMake quite recently myself and I believe it's a pretty good material to start with. Also, don't forget about CMake mailing lists with very helpful Community.Tutorial from "Mastering CMake" now online! - Bill Hoffman has just announced on the mailing list. Here it is CMake Tutorial Now on the WebLearning CMake (PDF) - tutorial written by Pau Garcia i QuilesCMake: Getting Started - comprehensive tutorial from Wiki of the MASH project.Here is video from webinar recorded in March, 2012 - Introduction to CMake, highly recommended.Here is Git repository with CMake tutorial presentation prepared by Eric Noulard available in various printable formats.Here is a 50 page PDF with Learning CMake by Pau Garcia i Quiles.Fortran developers, but not only, may find these two articles helpful:How LAPACK library enables Microsoft Visual Studio support with CMake and LAPACKE (PDF)Fortran for C/C++ developers made easier with CMakePlease, report any broken links in the comments below. 这篇关于CMake教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-02 17:23