更新时间:2021-07-16 18:05:56
封面
Title Page
Copyright and Credits
CMake Cookbook
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the authors
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Additional reading resources
Get in touch
Reviews
Setting up Your System
Obtaining the code
Docker image
Installing prerequisite software
Getting CMake
Compilers
Build-automation tools
Python
Additional software
BLAS and LAPACK
Message passing interface (MPI)
The Eigen linear algebra template library
The Boost libraries
Cross-compilers
ZeroMQ pkg-config UUID and Doxygen
Conda build and deployment tools
Testing the recipes
Reporting problems and suggesting improvements
From a Simple Executable to Libraries
Introduction
Compiling a single source file into an executable
Getting ready
How to do it
How it works
There is more
Switching generators
See also
Building and linking static and shared libraries
Controlling compilation with conditionals
Presenting options to the user
Specifying the compiler
Switching the build type
Controlling compiler flags
Setting the standard for the language
Using control flow constructs
Detecting the Environment
Discovering the operating system
Dealing with platform-dependent source code
Dealing with compiler-dependent source code
Discovering the host processor architecture