Варианты документации

This commit is contained in:
Andrei Astafev 2019-10-05 16:31:57 +03:00
parent 30bda5c4b6
commit 29669a2b12
2 changed files with 13 additions and 1 deletions

View File

@ -28,6 +28,9 @@ function(add_breathe_target)
cmake_parse_arguments(_BREATHE "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
set(BREATHE_DOCS_BUILD_DIR ${_BREATHE_BUILD_DIR})
set(GENERATE_XML YES)
set(GENERATE_HTML NO)
set(GENERATE_LATEX NO)
configure_file(${_BREATHE_CONF_FILE} ${_BREATHE_BUILD_DIR}/conf.py @ONLY)
configure_file(${_BREATHE_DOXY_FILE} ${_BREATHE_BUILD_DIR}/Doxyfile @ONLY)

View File

@ -12,10 +12,19 @@ endif()
function(add_doxygen_target)
if (DOXYGEN_FOUND)
set(options)
set(oneValueArgs TARGET_NAME IN OUT)
set(oneValueArgs TARGET_NAME IN OUT LATEX HTML)
set(multiValueArgs)
cmake_parse_arguments(_DOXYGEN "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
set(GENERATE_XML NO)
set(GENERATE_HTML NO)
set(GENERATE_LATEX NO)
if (_DOXYGEN_HTML)
set(GENERATE_HTML YES)
endif()
if (_DOXYGEN_LATEX)
set(GENERATE_LATEX YES)
endif()
configure_file(${_DOXYGEN_IN} ${_DOXYGEN_OUT} @ONLY)
message("Doxygen build started")