Skip to content
Permalink
Browse files

Use the Qt tag file from the system

  • Loading branch information...
steveire committed Aug 22, 2019
1 parent 36a9f23 commit caa5be7b999660e728bfdb934917ec7c18256ffc
Showing with 8 additions and 3 deletions.
  1. +8 −3 CMakeLists.txt
@@ -171,7 +171,12 @@ if (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)

# Available from http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
set(STLTAGFILE "${CMAKE_SOURCE_DIR}/scripts/libstdc++.tag=http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen")
set(QTTAGFILE "${CMAKE_SOURCE_DIR}/scripts/qttags.tag=https://doc.qt.io/qt-5/")
find_file(qtcore_tag_file
qtcore.tags
HINTS
"/usr/share/qt5/doc/qtcore"
)
set(QTTAGFILE "${qtcore_tag_file}=https://doc.qt.io/qt-5/")

set(TAGFILES "${QTTAGFILE} ${STLTAGFILE}")
set(DOCS_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
@@ -183,13 +188,13 @@ if (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
# Add support for a Qt assistant docs target
# qttags.tag is too big to distribute with Grantlee. Get it
# from http://api.kde.org/kdereview-api/kdereview.tar.gz for example.
if(EXISTS ${CMAKE_SOURCE_DIR}/scripts/qttags.tag)
if(EXISTS ${qtcore_tag_file})
set(DOCS_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/qtdocs")

# Available from http://steveire.com/libstdc++-longnames.tag
# Also recommended: http://www.steveire.com/libstdc++-v3.qch
set(STLTAGFILE "${CMAKE_SOURCE_DIR}/scripts/libstdc++-longnames.tag=qthelp://org.gnu.libstdcxx/libstdc++-v3/")
set(QTTAGFILE "${CMAKE_SOURCE_DIR}/scripts/qttags.tag=qthelp://com.trolltech.qt/qdoc/")
set(QTTAGFILE "${qtcore_tag_file}=qthelp://org.qt-project.qtcore/qtcore/")

set(TAGFILES "${QTTAGFILE} ${STLTAGFILE}")
set(GENERATE_QHP "yes")

0 comments on commit caa5be7

Please sign in to comment.
You can’t perform that action at this time.