Getting ready

The source tree for this recipe is similar to the two previous recipes:

.├── cmake│   ├── FindPythonModule.cmake│   ├── FindSphinx.cmake│   └── UseBreathe.cmake├── CMakeLists.txt├── docs│   ├── code-reference│   │   ├── classes-and-functions.rst│   │   └── message.rst│   ├── conf.py.in│   ├── Doxyfile.in│   └── index.rst└── src    ├── CMakeLists.txt    ├── hello-world.cpp    ├── Message.cpp    └── Message.hpp

The docs subdirectory now contains both a Doxyfile.in and a conf.py.in template file, with settings for Doxygen and Sphinx, respectively. In addition, we also have a code-reference subdirectory.

The files following code-reference contain Breathe instructions, to include Doxygen-generated documentation in Sphinx:

Messaging classes=================Message ...

Get CMake Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.