CMake Best Practices: Discover proven techniques for creating and maintaining programming projects with CMake (Paperback) (CMake 最佳實踐:發現創建和維護程式專案的有效技術)
Berner, Dominik, Gilor, Mustafa Kemal
- 出版商: Packt Publishing
- 出版日期: 2022-05-27
- 定價: $1,850
- 售價: 8.0 折 $1,480
- 語言: 英文
- 頁數: 406
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1803239727
- ISBN-13: 9781803239729
-
相關分類:
CMake
-
其他版本:
CMake Best Practices - Second Edition: Upgrade your C++ builds with CMake for maximum efficiency and scalability
買這商品的人也買了...
-
$580$493 -
$520$442 -
$1,400$1,330 -
$305圖解機器學習
-
$774$735 -
$650$507 -
$474$450 -
$2,300$2,185 -
$620$490 -
$920$874 -
$708$673 -
$301程序員的數學 第2版
-
$2,185$2,070 -
$414$393 -
$500$395 -
$980$833 -
$1,680$1,646 -
$3,600$3,420 -
$1,488Modern CMake for C++: Discover a better approach to building, testing, and packaging your software (Paperback)
-
$3,340$3,173 -
$1,480$1,450 -
$2,010$1,910 -
$1,360$1,333 -
$2,150$2,107 -
$1,980$1,881
相關主題
商品描述
Explore a compendium of creating and maintaining CMake projects without any overhead using tips, tricks, and techniques to empower your workflow
Key Features
- Understand what CMake is, how it works, and how to interact with it
- Discover how to properly create and maintain well-structured CMake projects
- Explore tools and techniques to get the most out of your CMake project
Book Description
CMake is a powerful tool used to perform a wide variety of tasks, so finding a good starting point for learning CMake is difficult. This book cuts to the core and covers the most common tasks that can be accomplished with CMake without taking an academic approach. While the CMake documentation is comprehensive, it is often hard to find good examples of how things fit together, especially since there are lots of dirty hacks and obsolete solutions available on the internet. This book focuses on helping you to tie things together and create clean and maintainable projects with CMake.
You'll not only get to grips with the basics but also work through real-world examples of structuring large and complex maintainable projects and creating builds that run in any programming environment. You'll understand the steps to integrate and automate various tools for improving the overall software quality, such as testing frameworks, fuzzes, and automatic generation of documentation. And since writing code is only half of the work, the book also guides you in creating installers and packaging and distributing your software. All this is tailored to modern development workflows that make heavy use of CI/CD infrastructure.
By the end of this CMake book, you'll be able to set up and maintain complex software projects using CMake in the best way possible.
What you will learn
- Get to grips with architecting a well-structured CMake project
- Modularize and reuse CMake code across projects
- Integrate various tools for static analysis, linting, formatting, and documentation into a CMake project
- Get hands-on with performing cross-platform builds
- Discover how you can easily use different toolchains with CMake
- Get started with crafting a well-defined and portable build environment for your project
Who This Book Is For
This book is for software engineers and build system maintainers working with C or C++ on a regular basis and trying to use CMake to better effect for their everyday tasks. Basic C++ and general programming knowledge will help you to better understand the examples covered in the book.
商品描述(中文翻譯)
探索一本關於使用技巧、訣竅和技術來創建和維護CMake項目的綜合指南,以提升您的工作流程。
主要特點:
- 瞭解CMake是什麼,它如何工作以及如何與之互動
- 發現如何正確創建和維護結構良好的CMake項目
- 探索工具和技術,以充分利用您的CMake項目
書籍描述:
CMake是一個強大的工具,用於執行各種任務,因此很難找到一個適合學習CMake的好起點。本書直指核心,涵蓋了使用CMake可以完成的最常見任務,而不採取學術方法。雖然CMake的文檔很全面,但往往很難找到好的示例,以展示事物如何結合在一起,特別是因為網絡上有很多不正確的解決方案和過時的解決方案。本書的重點是幫助您將事物聯繫在一起,並使用CMake創建乾淨且易於維護的項目。
您不僅將掌握基礎知識,還將通過實際示例來處理結構良好且複雜的可維護項目,並創建在任何編程環境中運行的構建。您將瞭解整合和自動化各種工具以提高整體軟件質量的步驟,例如測試框架、模糊測試和自動生成文檔。由於編寫代碼只是工作的一半,本書還指導您創建安裝程序、打包和分發軟件。所有這些都針對現代開發工作流程,這些工作流程大量使用CI/CD基礎設施。
通過閱讀本書,您將能夠以最佳方式使用CMake設置和維護複雜的軟件項目。
您將學到什麼:
- 掌握設計結構良好的CMake項目
- 在項目之間模塊化和重用CMake代碼
- 將各種工具整合到CMake項目中,進行靜態分析、linting、格式化和文檔生成
- 實際進行跨平台構建
- 發現如何輕鬆使用不同的工具鏈與CMake一起使用
- 開始為項目創建明確且可移植的構建環境
本書適合對C或C++進行常規工作並試圖更好地使用CMake進行日常任務的軟件工程師和構建系統維護人員。基本的C++和一般的編程知識將有助於更好地理解本書中涵蓋的示例。
目錄大綱
1. Kickstarting CMake
2. Accessing CMake in Best Ways
3. Creating a CMake Project
4. Packaging, Deploying and Installing a CMake Project Effortlessly
5. Integrating Third- Party Libraries and Dependency Management
6. Automatically Generating Documentation with CMake
7. Seamless Integration of Code Quality Tools with CMake
8. Executing Custom Tasks with CMake
9. Creating Reproducible Build Environments
10. Handling Distributed Repositories and Dependencies in a Super-build
11. Automated Fuzzing with CMake
12. Cross-Platform-Compiling Custom Toolchains
13. Reusing CMake Code
14. Optimizing and Maintaining CMake Projects
15. Migrating to CMake
16. Contributing to CMake and Further Reading Material
目錄大綱(中文翻譯)
1. 啟動 CMake
2. 最佳方式存取 CMake
3. 建立 CMake 專案
4. 輕鬆打包、部署和安裝 CMake 專案
5. 整合第三方庫和依賴管理
6. 使用 CMake 自動生成文件
7. 與 CMake 無縫集成代碼質量工具
8. 使用 CMake 執行自定義任務
9. 創建可重現的構建環境
10. 在超級構建中處理分佈式存儲庫和依賴
11. 使用 CMake 自動模糊測試
12. 跨平台編譯自定義工具鏈
13. 重用 CMake 代碼
14. 優化和維護 CMake 專案
15. 遷移到 CMake
16. 貢獻給 CMake 和進一步閱讀材料