2 # Build the documentation
4 include(${CMAKE_ROOT}/Modules/Documentation.cmake)
9 # Configure the script and the doxyfile, then add target
11 configure_file(${CLITK_SOURCE_DIR}/Doxygen/doxygen.config.in
12 ${PROJECT_BINARY_DIR}/Doxygen/doxygen.config)
14 configure_file(${CLITK_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