doc/CMakeLists.txt
branch1.2
changeset 1035 d149eaf24638
parent 943 d48d79b11f5b
parent 1033 16d466589b54
child 1039 7f37e5fc416e
equal deleted inserted replaced
14:b7010a7f2097 18:d0cf74a01071
     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
    50       COMPONENT html_documentation
    52       COMPONENT html_documentation
    51     )
    53     )
    52   ENDIF()
    54   ENDIF()
    53 
    55 
    54 ENDIF()
    56 ENDIF()
       
    57 
       
    58 IF(WGET_FOUND)
       
    59 ADD_CUSTOM_TARGET(update-external-tags
       
    60   COMMAND ${CMAKE_COMMAND} -E make_directory dl
       
    61   # COMMAND ${CMAKE_COMMAND} -E copy libstdc++.tag dl
       
    62   COMMAND ${WGET_EXECUTABLE} wget -P dl -N libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
       
    63   COMMAND ${CMAKE_COMMAND} -E rename dl/libstdc++.tag libstdc++.tag
       
    64   COMMAND ${CMAKE_COMMAND} -E remove dl/libstdc++.tag
       
    65   COMMAND ${CMAKE_COMMAND} -E remove_directory dl
       
    66   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
       
    67   )
       
    68 ENDIF()