summaryrefslogtreecommitdiffstats
path: root/src/assistant/help/Qt5HelpConfigExtras.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/assistant/help/Qt5HelpConfigExtras.cmake.in')
-rw-r--r--src/assistant/help/Qt5HelpConfigExtras.cmake.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/assistant/help/Qt5HelpConfigExtras.cmake.in b/src/assistant/help/Qt5HelpConfigExtras.cmake.in
index b8ce04427..3b97923a9 100644
--- a/src/assistant/help/Qt5HelpConfigExtras.cmake.in
+++ b/src/assistant/help/Qt5HelpConfigExtras.cmake.in
@@ -1,4 +1,19 @@
+if (NOT TARGET Qt5::qcollectiongenerator)
+ add_executable(Qt5::qcollectiongenerator IMPORTED)
+
+!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
+ set(imported_location \"${_qt5Help_install_prefix}/$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
+!!ELSE
+ set(imported_location \"$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
+!!ENDIF
+ _qt5_Help_check_file_exists(${imported_location})
+
+ set_target_properties(Qt5::qcollectiongenerator PROPERTIES
+ IMPORTED_LOCATION ${imported_location}
+ )
+endif()
+
if (NOT TARGET Qt5::qhelpgenerator)
add_executable(Qt5::qhelpgenerator IMPORTED)