23 lines
884 B
CMake
Executable File
23 lines
884 B
CMake
Executable File
# Locate and setup doxygen
|
|
|
|
# This module defines
|
|
# DOXYGEN_EXECUTABLE the path to the doxygen executable
|
|
# MACRO ADD_DOXYGEN_TARGET()
|
|
# target is the name of the project the doxyfile is for
|
|
# input is the doxyfile to preprocess wiuth CONFIGURE_FILE
|
|
# output is the output name for the doxyfile
|
|
# a new make target 'doxygen_<TARGET>' with TARGET is the target name given
|
|
|
|
FIND_PROGRAM(DOXYGEN_EXECUTABLE doxygen)
|
|
|
|
MACRO(ADD_DOXYGEN_TARGET target input output infile outdir)
|
|
IF(DOXYGEN_EXECUTABLE-NOTFOUND)
|
|
MESSAGE(STATUS "Doxygen executable not found - can't create doxygen documentation")
|
|
ELSE(DOXYGEN_EXECUTABLE-NOTFOUND)
|
|
CONFIGURE_FILE(${input} ${output})
|
|
ADD_CUSTOM_TARGET(doxygen_${target} doxygen ${output}
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${infile} ${outdir}
|
|
)
|
|
ENDIF(DOXYGEN_EXECUTABLE-NOTFOUND)
|
|
ENDMACRO(ADD_DOXYGEN_TARGET target)
|