CMake Cookbook: Over 40 recipes enabling you to build, test, and package software for distribution using the CMake suite (Paperback)
暫譯: CMake 食譜:超過 40 個食譜幫助您使用 CMake 套件構建、測試和打包軟體以供發行 (平裝本)

Radovan Bast, Roberto Di Remigio

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

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

商品描述

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 簡化您的檔案管理。它將涵蓋命令行工具、GUI 工具、創建靜態和共享函式庫、處理外部函式庫、運行測試等主題。到最後,您將能夠為多個平台生成本地構建腳本。我們也可以考慮涵蓋 3D 圖形和可視化系統的可視化工具包。

#### 您將學到什麼

- 如何提高程式碼的可攜性
- 學習如何在 CMake 的幫助下將程式碼巨集拆分為模組
- 構建多語言專案
- 知道在哪裡以及如何調整他人撰寫的 CMake 配置檔
- 偵測操作系統、處理器、函式庫、檔案和程式以進行條件編譯
- 創建在底層編譯源碼的 Python 套件

#### 本書適合誰

本書針對希望學習使用 CMake 管理構建系統的軟體開發者。需要具備一些 C++ 和 MakeFiles 的先前知識。