add_doxygen_targetΒΆ

add_doxygen_target(
                   [OUTPUT output]
                   [DEPENDS depend1 [depend2 ...]]
                   [TARGET target]
)
OUTPUT
Name of the output target, necessary if you don’t generate html.
DEPENDS
A list of further dependencies of the doxygen documentation. Might include mainpage.txt.
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.