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

Radovan Bast, Roberto Di Remigio

  • 出版商: Packt Publishing
  • 出版日期: 2018-09-27
  • 售價: $1,750
  • 貴賓價: 9.5$1,663
  • 語言: 英文
  • 頁數: 606
  • 裝訂: Paperback
  • ISBN: 1788470710
  • ISBN-13: 9781788470711
  • 相關分類: Compiler 編譯器CMake
  • 立即出貨 (庫存 < 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.