2009-02-03 13:43:45 +03:00
|
|
|
#
|
|
|
|
# Build the documentation
|
|
|
|
#
|
2018-08-30 08:13:24 +03:00
|
|
|
if (${CMAKE_VERSION} VERSION_GREATER "3.8.99")
|
2018-08-29 22:50:55 +03:00
|
|
|
|
2018-08-21 13:07:13 +03:00
|
|
|
find_package(Doxygen)
|
2009-02-03 13:43:45 +03:00
|
|
|
|
2018-08-21 13:07:13 +03:00
|
|
|
if (DOXYGEN_FOUND)
|
2018-08-29 10:44:45 +03:00
|
|
|
set(DOXYGEN_PROJECT_NAME ${PROJECT_NAME})
|
|
|
|
set(DOXYGEN_PROJECT_NUMBER ${PROJECT_VERSION})
|
|
|
|
set(DOXYGEN_PROJECT_BRIEF "The SSH library")
|
|
|
|
|
|
|
|
set(DOXYGEN_TAB_SIZE 4)
|
|
|
|
set(DOXYGEN_OPTIMIZE_OUTPUT_FOR_C YES)
|
|
|
|
set(DOXYGEN_MARKDOWN_SUPPORT YES)
|
|
|
|
|
|
|
|
set(DOXYGEN_PREDEFINED DOXYGEN
|
2018-08-29 19:08:31 +03:00
|
|
|
PRINTF_ATTRIBUTE(x,y))
|
2018-08-29 10:44:45 +03:00
|
|
|
|
|
|
|
set(DOXYGEN_EXCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/that_style)
|
|
|
|
set(DOXYGEN_HTML_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/that_style/header.html)
|
|
|
|
set(DOXYGEN_HTML_EXTRA_STYLESHEET ${CMAKE_CURRENT_SOURCE_DIR}/that_style/that_style.css)
|
|
|
|
set(DOXYGEN_HTML_EXTRA_FILES ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/nav_edge_left.svg
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/nav_edge_right.svg
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/nav_edge_inter.svg
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/sync_off.png
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/sync_on.png
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/splitbar_handle.svg
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/doc.svg
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/mag_glass.svg
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/folderclosed.svg
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/folderopen.svg
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/that_style/js/striped_bg.js)
|
|
|
|
|
|
|
|
# This updates the Doxyfile if we do changes here
|
|
|
|
set(_doxyfile_template "${CMAKE_BINARY_DIR}/CMakeDoxyfile.in")
|
|
|
|
set(_target_doxyfile "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.docs")
|
|
|
|
configure_file("${_doxyfile_template}" "${_target_doxyfile}")
|
|
|
|
|
2018-08-21 13:07:13 +03:00
|
|
|
doxygen_add_docs(docs
|
2018-08-29 10:44:45 +03:00
|
|
|
${CMAKE_SOURCE_DIR}/include/libssh
|
2018-08-27 17:46:01 +03:00
|
|
|
${CMAKE_SOURCE_DIR}/src
|
2018-08-21 13:07:13 +03:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR})
|
2018-08-29 22:50:55 +03:00
|
|
|
endif() # DOXYGEN_FOUND
|
|
|
|
|
|
|
|
endif() # CMAKE_VERSION
|