diff --git a/CMLibDocBreathe.cmake b/CMLibDocBreathe.cmake index 56cebb3..82068dc 100644 --- a/CMLibDocBreathe.cmake +++ b/CMLibDocBreathe.cmake @@ -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) diff --git a/CMLibDocDoxygen.cmake b/CMLibDocDoxygen.cmake index 370ec38..0f428a0 100644 --- a/CMLibDocDoxygen.cmake +++ b/CMLibDocDoxygen.cmake @@ -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")