Read-only mirror of https://github.com/ethz-asl/doxygen_catkin — ETHZ ASL. Issues & pull requests at the source.
  • Python 97.5%
  • CMake 2.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2018-07-16 09:54:38 +02:00
bin First implementation of a helper function for generating documentation 2014-08-16 10:29:09 +02:00
cmake Fix to create the doc directory on first build 2014-08-20 21:41:06 +02:00
.gitignore Preliminary install support 2018-07-03 15:22:39 +02:00
CMakeLists.txt Preliminary install support 2018-07-03 15:22:39 +02:00
LICENSE Initial commit 2014-08-16 08:42:44 +02:00
package.xml First implementation of a helper function for generating documentation 2014-08-16 10:29:09 +02:00
README.md Update README.md 2014-08-16 10:35:30 +02:00
setup.py First implementation of a helper function for generating documentation 2014-08-16 10:29:09 +02:00

doxygen_catkin

This package provides an easy cmake function for creating a Doxygen documentation target using catkin.

add_doxygen()

This function will find Doxygen and and create a documentation target. To use it, simply add the add_doxygen() to your CMakeLists.txt file. This requires that you have a Doxyfile.in and mainpage.dox in the root directory of your package (see doxygen-catkin-filegen below). Documentation will then be produced in devel/share/${package_name}/doc.

There are two keyword arguments to the add_doxygen() funciton:

  • REQUIRED -- This will cause a failure if Doxygen is not found by cmake. If this is not added, failing to find Doxygen will simply mean that no documentation is built.
  • NOT_AUTOMATIC -- If this option is added, you must build the documentation manually by calling make doc. Otherwise the documentation is added to the default build target and built every time you call make

doxygen-catkin-filegen

The add_doxygen() cmake function expects to find two files in the root directory of your package: mainpage.dox and Doxyfile.in. To get basic versions of these files, use the command-line utility doxygen-catkin-filegen that comes with this package:

$ doxygen-catkin-filegen -h
usage: doxygen-catkin-filegen [-h] project

This utility creates a basic doxygen Doxyfile.in and mainpage.dox based on your arguments

positional arguments:
  project     Pretty project name.

optional arguments:
  -h, --help  show this help message and exit