add_doxygen_targetΒΆ

add_doxygen_target(
                   [DEPENDS depend1 [depend2 ...]]
                   [OUTPUT output]
                   [TARGET target]
)
DEPENDS
A list of further dependencies of the doxygen documentation. Might include mainpage.txt.
OUTPUT
Name of the output target, necessary if you don’t generate html.
TARGET
The suffix to add to the target name, default to the module name.

This macro creates a target for building (doxygen_${ProjectName}) and installing (doxygen_install_${ProjectName}) the generated doxygen documentation. The documentation is built during the top-level make doc call. We have added a dependency that makes sure it is built before running make install.