add_doxygen_target

add_doxygen_target(
    [TARGET target]
    [DEPENDS depend1 [depend2 ...]]
    [OUTPUT output]
)
TARGET

The suffix to add to the target name, default to the module name.

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.

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.