Minimal CMake: Learn the best bits of CMake to create and share your own libraries and applications
Hulton-Harrop, Tom
- 出版商: Packt Publishing
- 出版日期: 2024-11-15
- 售價: $1,720
- 貴賓價: 9.5 折 $1,634
- 語言: 英文
- 頁數: 266
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1835087310
- ISBN-13: 9781835087312
-
相關分類:
CMake
無法訂購
相關主題
商品描述
Design, build, and share cross-platform software effortlessly, and enhance your development workflow with this hands-on guide
Key Features:
- Unlock efficient cross-platform builds with streamlined CMake setups
- Learn CMake's most powerful features for streamlined software development from a seasoned game and engine developer
- Create and distribute an application with step-by-step instructions, practical examples, and working code
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
Minimal CMake guides you through creating a CMake project one step at a time. The book utilizes the author's unique expertise in game and engine development to craft compelling examples of how CMake can be used to build complex software. The chapters introduce concepts gradually, each one building on the last. Throughout the course of the book, you will progress from a simple console application all the way through to a full windowed app.
The book will help you build a strong foundation in CMake that will translate to future projects. You'll learn how to integrate existing software libraries to enhance your app's functionality, how to build reusable libraries to share with others, and how to manage developing for multiple platforms simultaneously, including macOS, Windows, and Linux. You'll also find out how CMake facilitates testing and how to package your application ready for distribution.
The book aims to not overwhelm you with everything there is to know about CMake. Instead, it focuses on the most relevant and important parts that will help you become productive quickly.
By the end of this book, you will be a confident CMake user and will have gained the skills and experience to build and share your own libraries and applications.
What You Will Learn:
- Set up projects for seamless cross-platform development
- Integrate external libraries to enhance your project's functionality
- Create and share reusable libraries
- Manage complex software dependencies for improved maintainability
- Package and distribute applications efficiently
- Utilize top tools to streamline your CMake workflow
- Explore resources for continuous learning
Who this book is for:
If you are a programmer skilled in C, C++, Swift, Objective-C, or C#, and keen on cross-platform development and open-source software, this book is for you. A solid grasp of CMake helps you to effectively utilize and create open-source libraries and applications. No prior knowledge of CMake is necessary, though familiarity with an imperative programming language (especially C and C++) is beneficial. While a basic understanding of the terminal is advantageous, comprehensive setup instructions will guide you across Windows, macOS, and Linux (Ubuntu).
Table of Contents
- Getting Started
- Hello, CMake!
- Using FetchContent with External Dependencies
- Creating Libraries for FetchContent
- Streamlining CMake Configuration
- Installing Dependencies and ExternalProject_Add
- Adding Install Support for Your Libraries
- Using Super Builds to Simplify Onboarding
- Writing Tests for the Project
- Packaging the Project for Sharing
- Supporting Tools and Next Steps
商品描述(中文翻譯)
設計、建構並輕鬆分享跨平台軟體,並透過這本實用指南提升您的開發工作流程
主要特色:
- 透過簡化的 CMake 設定解鎖高效的跨平台建構
- 從一位資深的遊戲和引擎開發者那裡學習 CMake 最強大的功能,以簡化軟體開發
- 透過逐步指導、實用範例和可運行的程式碼來創建和分發應用程式
- 購買印刷版或 Kindle 書籍可獲得免費 PDF 電子書
書籍描述:
《Minimal CMake》將引導您一步一步創建 CMake 專案。這本書利用作者在遊戲和引擎開發方面的獨特專業知識,提供引人入勝的範例,展示如何使用 CMake 建構複雜的軟體。各章節逐步介紹概念,每一章都在前一章的基礎上進行擴展。在書籍的過程中,您將從一個簡單的控制台應用程式進展到完整的視窗應用程式。
這本書將幫助您建立 CMake 的堅實基礎,這將轉化為未來的專案。您將學會如何整合現有的軟體庫以增強應用程式的功能,如何建立可重用的庫以與他人分享,以及如何同時管理多個平台的開發,包括 macOS、Windows 和 Linux。您還將了解 CMake 如何促進測試,以及如何打包您的應用程式以便分發。
這本書的目標是讓您不會被 CMake 的所有知識所淹沒。相反,它專注於最相關和重要的部分,幫助您快速提高生產力。
在這本書結束時,您將成為一位自信的 CMake 使用者,並獲得建立和分享您自己的庫和應用程式所需的技能和經驗。
您將學到的內容:
- 設置專案以實現無縫的跨平台開發
- 整合外部庫以增強專案的功能
- 創建和分享可重用的庫
- 管理複雜的軟體依賴以提高可維護性
- 高效地打包和分發應用程式
- 利用頂尖工具簡化您的 CMake 工作流程
- 探索持續學習的資源
本書適合對象:
如果您是一位精通 C、C++、Swift、Objective-C 或 C# 的程式設計師,並對跨平台開發和開源軟體感興趣,那麼這本書適合您。對 CMake 的扎實理解將幫助您有效利用和創建開源庫和應用程式。雖然不需要具備 CMake 的先前知識,但熟悉一種命令式程式語言(特別是 C 和 C++)將是有益的。雖然對終端的基本理解是有利的,但全面的設置指導將引導您在 Windows、macOS 和 Linux(Ubuntu)上進行操作。
目錄:
- 開始使用
- 你好,CMake!
- 使用 FetchContent 與外部依賴
- 為 FetchContent 創建庫
- 簡化 CMake 配置
- 安裝依賴和 ExternalProject_Add
- 為您的庫添加安裝支持
- 使用 Super Builds 簡化入門
- 為專案編寫測試
- 為分享打包專案
- 支持工具和後續步驟