Skip to content

Commit

Permalink
Merge pull request #730 from jrl-umi3218/doxygen
Browse files Browse the repository at this point in the history
Doxygen: allow manual specification of some tagfiles
  • Loading branch information
jcarpent authored Dec 19, 2024
2 parents bc462fb + be1630a commit bbf48ec
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions doxygen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -628,18 +628,18 @@ macro(_SETUP_PROJECT_DOCUMENTATION)
if(EXISTS ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}.doxytag)
install(
FILES ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}.doxytag
DESTINATION ${CMAKE_INSTALL_DOCDIR}/doxygen-html
DESTINATION ${CMAKE_INSTALL_FULL_DOCDIR}/doxygen-html
)
endif()
install(
DIRECTORY ${PROJECT_BINARY_DIR}/doc/doxygen-html
DESTINATION ${CMAKE_INSTALL_DOCDIR}
DESTINATION ${CMAKE_INSTALL_FULL_DOCDIR}
)

if(EXISTS ${PROJECT_SOURCE_DIR}/doc/pictures)
install(
DIRECTORY ${PROJECT_SOURCE_DIR}/doc/pictures
DESTINATION ${CMAKE_INSTALL_DOCDIR}/doxygen-html
DESTINATION ${CMAKE_INSTALL_FULL_DOCDIR}/doxygen-html
)
endif(EXISTS ${PROJECT_SOURCE_DIR}/doc/pictures)
endif(INSTALL_DOCUMENTATION)
Expand Down Expand Up @@ -706,6 +706,9 @@ endmacro()
# Doxyfile.extra and Doxyfile files are generated at the end to allow the
# replacement of user-defined variables.
#
# Additional doxygen tagfiles from dependencies can be added to
# `DOXYGEN_TAGFILES_FROM_DEPENDENCIES`
#
macro(_SETUP_PROJECT_DOCUMENTATION_FINALIZE)
if(DOXYGEN_FOUND)
if(NOT "${DOXYGEN_USE_MATHJAX}" STREQUAL "YES")
Expand Down Expand Up @@ -738,7 +741,7 @@ macro(_SETUP_PROJECT_DOCUMENTATION_FINALIZE)
if(INSTALL_DOCUMENTATION)
# Find doxytag files To ignore this list of tag files, set variable
# DOXYGEN_TAGFILES
set(INSTALL_DOCDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DOCDIR})
set(_TAGFILES_FROM_DEPENDENCIES "${DOXYGEN_TAGFILES_FROM_DEPENDENCIES}")
set(PKG_REQUIRES ${_PKG_CONFIG_REQUIRES})
list(APPEND PKG_REQUIRES ${_PKG_CONFIG_COMPILE_TIME_REQUIRES})
foreach(PKG_CONFIG_STRING ${PKG_REQUIRES})
Expand All @@ -753,7 +756,7 @@ macro(_SETUP_PROJECT_DOCUMENTATION_FINALIZE)
file(
RELATIVE_PATH
DEP_DOCDIR
${INSTALL_DOCDIR}
${CMAKE_INSTALL_FULL_DOCDIR}
${${PREFIX}_DOXYGENDOCDIR}
)

Expand Down

0 comments on commit bbf48ec

Please sign in to comment.