summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2020-10-26 11:42:20 +0100
committerPaul Wicking <paul.wicking@qt.io>2020-10-27 12:49:39 +0100
commit5c352f47b977c72db323bb8e7b6ac25e1a453202 (patch)
tree6ae4256de157c2bb46273f43bc58e844a84ebe1d /qmake
parentd0bc2cefd2d37e18415c0aaebcb07597e3b54a72 (diff)
Add doc target for qmake
qmake currently doesn't have a doc target in CMake. In qmake builds, the doc target is in qtbase/ (not in qtbase/qmake). This patch mimics the mechanic used in QDoc, and adds this as a special case (as the project file doesn't contain the doc target). Fixes: QTBUG-87868 Change-Id: Ib1ca249465c5df2f22ba73084c680781e595c30a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt
index 65d847375e..0dc9d5f03c 100644
--- a/qmake/CMakeLists.txt
+++ b/qmake/CMakeLists.txt
@@ -278,3 +278,10 @@ qt_internal_apply_gc_binaries(${target_name} PRIVATE) # special case
qt_enable_msvc_cplusplus_define(${target_name} PUBLIC) # special case
qt_skip_warnings_are_errors(${target_name}) # special case
qt_internal_apply_intel_cet(Bootstrap PUBLIC) # special case
+
+# special case begin
+qt_internal_add_docs(${target_name}
+ doc/qmake.qdocconf
+)
+# special case end
+