Minimal CMake
eBook - PDF

Minimal CMake

Learn the best bits of CMake to create and share your own libraries and applications

  1. 266 pages
  2. English
  3. PDF
  4. Available on iOS & Android
eBook - PDF

Minimal CMake

Learn the best bits of CMake to create and share your own libraries and applications

About this book

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).

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2025
eBook ISBN
9781835080658

Table of contents

  1. Cover
  2. Title Page
  3. Copyright and Credits
  4. Dedications
  5. Contributors
  6. Table of Contents
  7. Preface
  8. Part 1: Starting Up
  9. Chapter 1: Getting Started
  10. Chapter 2: Hello, CMake!
  11. Chapter 3: Using FetchContent with External Dependencies
  12. Chapter 4: Creating Libraries for FetchContent
  13. Part 2: Scaling Up
  14. Chapter 5: Streamlining CMake Configuration
  15. Chapter 6: Installing Dependencies and ExternalProject_Add
  16. Chapter 7: Adding Install Support for Your Libraries
  17. Chapter 8: Using Super Builds to Simplify Onboarding
  18. Part 3: Wrapping Up
  19. Chapter 9: Writing Tests for the Project
  20. Chapter 10: Packaging the Project for Sharing
  21. Chapter 11: Supporting Tools and Next Steps
  22. Index
  23. Other Books You May Enjoy

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Minimal CMake by Tom Hulton-Harrop in PDF and/or ePUB format. We have over 1.5 million books available in our catalogue for you to explore.