CMake Cookbook: Over 40 recipes enabling you to build, test, and package software for distribution using the CMake suite (Paperback)

Radovan Bast, Roberto Di Remigio

  • 出版商: Packt Publishing
  • 出版日期: 2018-09-26
  • 售價: $2,200
  • 貴賓價: 9.5$2,090
  • 語言: 英文
  • 頁數: 606
  • 裝訂: Paperback
  • ISBN: 1788470710
  • ISBN-13: 9781788470711
  • 相關分類: CompilerCMake
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

商品描述

Learn CMake through this series of task-based recipes that provides developers with practical, simple and executable CMake solutions for their code

Key Features

  • A recipe-based guide to equip you with the skills required to working with CMake.
  • Deal with complex directory hierarchies and several libraries used by your applications with CMake.
  • Learn to use the suite of CMake tools to build, test and package software for distribution.

Book Description

CMake is cross-platform and open-source software for managing the build process of software using a compiler independent method. The book will be an exhaustive compilation of recipes showcasing the tips and techniques you need to keep in mind while working with CMake. It teaches you to work with the CMake build system, CTest, CPack, CDas to drive the native tools maintaining a common specification. Our book will include real-world examples in the form of recipes to show different ways to support complex directory hierarchies. The book includes everything right from installing CMake to getting you up and running with it. Pick and choose the idea you want for your daily usage and make your file management easier with CMake. It will cover topics such as command-line tools, GUI tools, creating static & shared libraries, working with external libraries, running tests and much more. Towards the end you will be well-equipped to generate native build scripts for a range of platforms. We can also look at covering the visualization toolkit for 3D graphics and visualization systems.

What you will learn

  • How to increase portability of your code
  • Learn how to split a code monolith into modules with the help of CMake
  • Building multi-language projects
  • Know where and how to tweak CMake configuration files written by somebody else
  • Detecting operating system, processor, libraries, files, and programs for conditional compilation
  • Creating Python packages which compile sources under the hood

Who This Book Is For

The book is targeted for software developers who wants to learn to manage the build system using CMake. Some prior Knowledge of C++ and MakeFiles is required.

商品描述(中文翻譯)

透過這一系列基於任務的食譜,開發者可以學習使用 CMake,並為他們的程式碼提供實用、簡單且可執行的 CMake 解決方案。

主要特點:

- 以食譜為基礎的指南,讓您掌握使用 CMake 的技能。
- 使用 CMake 處理複雜的目錄層次結構和應用程式所使用的多個庫。
- 學習使用 CMake 工具套件來建構、測試和打包軟體以供分發。

書籍描述:

CMake 是一款跨平台且開源的軟體,用於使用獨立於編譯器的方法管理軟體的建構過程。本書將是一本詳盡的食譜彙編,展示在使用 CMake 時需要牢記的技巧和技巧。它教導您如何使用 CMake 建構系統、CTest、CPack、CDas 來驅動本地工具,並維護一個共同的規範。本書將以食譜的形式提供真實世界的示例,展示支援複雜目錄層次結構的不同方法。本書從安裝 CMake 開始,帶您快速上手。您可以根據自己的需求選擇和運用每天使用的想法,並使用 CMake 使文件管理更加輕鬆。本書將涵蓋命令行工具、圖形化工具、創建靜態和共享庫、使用外部庫、運行測試等主題。到最後,您將具備為各種平台生成本地建構腳本的能力。我們還可以考慮涵蓋用於 3D 圖形和可視化系統的可視化工具包。

您將學到什麼:

- 如何提高程式碼的可移植性。
- 學習如何使用 CMake 將程式碼巨石拆分為模組。
- 建構多語言專案。
- 知道在他人編寫的 CMake 配置文件中進行調整的位置和方式。
- 條件編譯時檢測作業系統、處理器、庫、檔案和程式。
- 創建在幕後編譯源代碼的 Python 封裝。

本書適合對使用 CMake 管理建構系統有興趣的軟體開發者。需要具備一定的 C++ 和 MakeFiles 知識。