#--------------------------------------------------------------------- # Helper functions. #--------------------------------------------------------------------- function(doxygen_module_has_changed _module _modname _changed) set(changed TRUE) # check if we need to build this if(Subversion_FOUND AND EXISTS ${DOXYGEN_SOURCE_DIR}/${_module}/.svn) Subversion_WC_INFO(${DOXYGEN_SOURCE_DIR}/${_module} ${_modname}) if(DOXYGEN_${_modname}_LAST_BUILD_REV) if(NOT ${_modname}_WC_LAST_CHANGED_REV GREATER ${DOXYGEN_${_modname}_LAST_BUILD_REV}) # check whether there are uncommitted modifications execute_process( COMMAND "${Subversion_SVN_EXECUTABLE}" status "${DOXYGEN_SOURCE_DIR}/${_module}" OUTPUT_VARIABLE svn_log_output OUTPUT_STRIP_TRAILING_WHITESPACE ) if(NOT svn_log_output) set(changed FALSE) endif() endif() endif() # Save the last revision built (or attempted to build). if(${_modname}_WC_REVISION) file(APPEND "${CMAKE_BINARY_DIR}/doxygen_last_build_rev.cmake" "set(DOXYGEN_${_modname}_LAST_BUILD_REV ${${_modname}_WC_REVISION})\n" ) endif() endif() set(${_changed} ${changed} PARENT_SCOPE) endfunction() function(_print_header _index_html) set(title "VXL Documentation") file(READ "${DOXYGEN_SCRIPT_DIR}/doxy_header.html" index_html) string(CONFIGURE "${index_html}" index_html @ONLY) set(index_html "${index_html}
C++ Libraries for Computer Vision Research and Implementation
" ) foreach(library ${DOXYGEN_${packname}_LIBRARY_LIST}) string(REPLACE / _ libname ${library}) string(REGEX REPLACE ".*/" "" lib ${library}) if(DOXYGEN_${libname}_DESCRIPTION) set(index_html "${index_html} ${lib} : ${DOXYGEN_${libname}_DESCRIPTION}" ) endif() endforeach() set(${_index_html} "${index_html}" PARENT_SCOPE) endfunction() function(_print_footer _index_html) set(index_html "${${_index_html}}") execute_process( COMMAND ${PERL_EXECUTABLE} -e "$date = localtime(time()); print $date" OUTPUT_VARIABLE date OUTPUT_STRIP_TRAILING_WHITESPACE ) set(index_html "${index_html}
" ) else() set(index_html "${index_html} ${lib}
" ) endif() endforeach() set(index_html "${index_html}