CMake: Move documentation into separate project

We've now four pages, which logically belong together. So let's
move them into one 'qtcmake' module.

Change-Id: I3015fc0804d62bcaec2cfbb6b84c6c08fe5f43f8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Kai Koehne 2019-08-06 12:03:04 +02:00
parent 530a73a825
commit 37e2fe2b4c
6 changed files with 59 additions and 3 deletions

View File

@ -11,6 +11,7 @@ moduleheader =
depends += \
activeqt \
qtcmake \
qdoc \
qmake \
qtandroidextras \
@ -85,9 +86,10 @@ exampledirs += \
../snippets \
../../examples
# Don't parse files in snippets directory
# Don't parse files in snippets and cmake directories
excludedirs += \
../src/snippets
../src/snippets \
../src/cmake
examplesinstallpath =

9
doc/src/cmake/cmake.pro Normal file
View File

@ -0,0 +1,9 @@
TEMPLATE = aux
QMAKE_DOCS = $$PWD/qtcmake.qdocconf
QTDIR = $$[QT_HOST_PREFIX]
exists($$QTDIR/.qmake.cache): \
QMAKE_DOCS_OUTPUTDIR = $$QTDIR/doc/cmake
else: \
QMAKE_DOCS_OUTPUTDIR = $$OUT_PWD/cmake

View File

@ -0,0 +1,39 @@
include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
include($QT_INSTALL_DOCS/global/externalsites.qdocconf)
project = QtCMake
description = Using Qt with CMake
version = $QT_VERSION
qhp.projects = qtcmake
qhp.qtcmake.file = qtcmake.qhp
qhp.qtcmake.namespace = org.qt-project.qtcmake.$QT_VERSION_TAG
qhp.qtcmake.virtualFolder = qtcmake
qhp.qtcmake.indexTitle = Using Qt with CMake
qhp.qtcmake.filterAttributes = qt $QT_VERSION tools cmake
qhp.qtcmake.customFilters.qtcmake.name = Build with CMake
qhp.qtcmake.customFilters.qtcmake.filterAttributes = qt tools cmake
qhp.qtcmake.subprojects = manual
qhp.qtcmake.subprojects.manual.title = Manual
qhp.qtcmake.subprojects.manual.indexTitle = Build with CMake
qhp.qtcmake.subprojects.manual.selectors = fake:page
sources = cmake-manual.qdoc
exampledirs = .
# Instruct Clang not to look for a module header
moduleheader =
depends += \
qtdoc \
qtcore \
qtnetwork \
qtsql \
qtgui \
qtwidgets \
qtdbus \
qtlinguist
navigation.landingpage = "Build with CMake"

View File

@ -1,3 +1,9 @@
load(qt_parts)
SUBDIRS += doc
cmake.file = doc/src/cmake/cmake.pro
doc.file = doc/doc.pro
doc.depends = cmake
SUBDIRS += doc cmake