From 5c352f47b977c72db323bb8e7b6ac25e1a453202 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Mon, 26 Oct 2020 11:42:20 +0100 Subject: [PATCH] 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 --- qmake/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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 +