]> Creatis software - clitk.git/blob - Doxygen/CMakeLists.txt
Moved from repository clitk to clitk.private/tests_dav
[clitk.git] / Doxygen / CMakeLists.txt
1 #
2 # Build the documentation
3 #
4 INCLUDE (${CMAKE_ROOT}/Modules/Documentation.cmake)
5
6 IF (BUILD_DOXYGEN)
7
8   #
9   # Configure the script and the doxyfile, then add target
10   #
11   CONFIGURE_FILE(${CLITK_SOURCE_DIR}/Doxygen/doxygen.config.in
12                  ${PROJECT_BINARY_DIR}/Doxygen/doxygen.config)
13
14                CONFIGURE_FILE(${CLITK_SOURCE_DIR}/Doxygen/itkdoxygen.pl.in
15                  ${PROJECT_BINARY_DIR}/Doxygen/itkdoxygen.pl)
16
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
22     )
23
24 ENDIF (BUILD_DOXYGEN)