doc/CMakeLists.txt
branch1.1
changeset 743 653259678d43
parent 681 9c7639f3a741
child 745 d3b041452dd8
equal deleted inserted replaced
11:9f4bd1bef261 12:cfd2435ce736
     1 SET(PACKAGE_NAME ${PROJECT_NAME})
     1 SET(PACKAGE_NAME ${PROJECT_NAME})
     2 SET(PACKAGE_VERSION ${PROJECT_VERSION})
     2 SET(PACKAGE_VERSION ${PROJECT_VERSION})
     3 SET(abs_top_srcdir ${PROJECT_SOURCE_DIR})
     3 SET(abs_top_srcdir ${PROJECT_SOURCE_DIR})
     4 SET(abs_top_builddir ${PROJECT_BINARY_DIR})
     4 SET(abs_top_builddir ${PROJECT_BINARY_DIR})
       
     5 
       
     6 SET(LEMON_DOC_SOURCE_BROWSER "NO" CACHE STRING "Include source into the doc (YES/NO).")
     5 
     7 
     6 CONFIGURE_FILE(
     8 CONFIGURE_FILE(
     7   ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in
     9   ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in
     8   ${PROJECT_BINARY_DIR}/doc/Doxyfile
    10   ${PROJECT_BINARY_DIR}/doc/Doxyfile
     9   @ONLY
    11   @ONLY
    47       COMPONENT html_documentation
    49       COMPONENT html_documentation
    48     )
    50     )
    49   ENDIF()
    51   ENDIF()
    50 
    52 
    51 ENDIF()
    53 ENDIF()
       
    54 
       
    55 IF(WGET_FOUND)
       
    56 ADD_CUSTOM_TARGET(update-external-tags
       
    57   COMMAND ${CMAKE_COMMAND} -E make_directory dl
       
    58   # COMMAND ${CMAKE_COMMAND} -E copy libstdc++.tag dl
       
    59   COMMAND ${WGET_EXECUTABLE} wget -P dl -N libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
       
    60   COMMAND ${CMAKE_COMMAND} -E rename dl/libstdc++.tag libstdc++.tag
       
    61   COMMAND ${CMAKE_COMMAND} -E remove dl/libstdc++.tag
       
    62   COMMAND ${CMAKE_COMMAND} -E remove_directory dl
       
    63   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
       
    64   )
       
    65 ENDIF()