doc/CMakeLists.txt
changeset 1213 4e8787627db3
parent 1206 a2d142bb5d3c
parent 1208 60c0c3ed8d11
child 1214 387483bf0a56
equal deleted inserted replaced
27:1dd4f4cc0b71 30:1278f4dd7fc0
     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 
     5 
     6 SET(LEMON_DOC_SOURCE_BROWSER "NO" CACHE STRING "Include source into the doc (YES/NO).")
     6 SET(LEMON_DOC_SOURCE_BROWSER "NO" CACHE STRING "Include source into the doc (YES/NO).")
       
     7 SET(LEMON_DOC_USE_MATHJAX "NO" CACHE STRING "Use MathJax to display math formulae (YES/NO).")
       
     8 SET(LEMON_DOC_MATHJAX_RELPATH "http://www.mathjax.org/mathjax" CACHE STRING "MathJax library location.")
     7 
     9 
     8 CONFIGURE_FILE(
    10 CONFIGURE_FILE(
     9   ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in
    11   ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in
    10   ${PROJECT_BINARY_DIR}/doc/Doxyfile
    12   ${PROJECT_BINARY_DIR}/doc/Doxyfile
    11   @ONLY
    13   @ONLY
    71 
    73 
    72 ENDIF()
    74 ENDIF()
    73 
    75 
    74 IF(WGET_FOUND)
    76 IF(WGET_FOUND)
    75 ADD_CUSTOM_TARGET(update-external-tags
    77 ADD_CUSTOM_TARGET(update-external-tags
    76   COMMAND ${CMAKE_COMMAND} -E make_directory dl
    78   COMMAND ${WGET_EXECUTABLE} -N http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
    77   # COMMAND ${CMAKE_COMMAND} -E copy libstdc++.tag dl
       
    78   COMMAND ${WGET_EXECUTABLE} wget -P dl -N libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
       
    79   COMMAND ${CMAKE_COMMAND} -E rename dl/libstdc++.tag libstdc++.tag
       
    80   COMMAND ${CMAKE_COMMAND} -E remove dl/libstdc++.tag
       
    81   COMMAND ${CMAKE_COMMAND} -E remove_directory dl
       
    82   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    79   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    83   )
    80   )
    84 ENDIF()
    81 ENDIF()