alpar@0: SET(PACKAGE_NAME ${PROJECT_NAME}) alpar@0: SET(PACKAGE_VERSION ${PROJECT_VERSION}) alpar@0: SET(abs_top_srcdir ${PROJECT_SOURCE_DIR}) alpar@0: SET(abs_top_builddir ${PROJECT_BINARY_DIR}) alpar@0: alpar@0: CONFIGURE_FILE( alpar@0: ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in alpar@0: ${PROJECT_BINARY_DIR}/doc/Doxyfile alpar@0: @ONLY) alpar@0: alpar@0: IF(DOXYGEN_EXECUTABLE) alpar@0: FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/) alpar@0: IF(UNIX) alpar@0: ADD_CUSTOM_TARGET(html alpar@0: COMMAND rm -rf html alpar@0: COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile alpar@0: WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) alpar@0: ELSEIF(WIN32) alpar@0: ADD_CUSTOM_TARGET(html alpar@0: COMMAND if exist html rmdir /s /q html alpar@0: COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile alpar@0: WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) alpar@0: ENDIF(UNIX) alpar@0: INSTALL( alpar@0: DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ alpar@0: DESTINATION share/doc alpar@0: COMPONENT html_documentation) alpar@0: ENDIF(DOXYGEN_EXECUTABLE)