2 # Build the documentation
4 INCLUDE (${CMAKE_ROOT}/Modules/Documentation.cmake)
9 # Configure the script and the doxyfile, then add target
11 CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/Doxygen/doxygen.config.in
12 ${PROJECT_BINARY_DIR}/Doxygen/doxygen.config)
14 CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/Doxygen/itkdoxygen.pl.in
15 ${PROJECT_BINARY_DIR}/Doxygen/itkdoxygen.pl)
17 ADD_CUSTOM_TARGET(Documentation
18 COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxygen/doxygen.config
19 MAIN_DEPENDENCY ${PROJECT_BINARY_DIR}/Doxygen/doxygen.config
20 DEPENDS ${PROJECT_BINARY_DIR}/Doxygen/itkdoxygen.pl
21 WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/Doxygen