diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2014-04-16 12:33:54 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-16 16:24:08 +0200 |
commit | 1f753e86eaaed18e7e5db04d72837e6a7a82171d (patch) | |
tree | 01317e45d2fa983debfa45862d657bd603a89bbb | |
parent | 42b43cc9f3ee8b870eaf386145d1bcc9bede8df4 (diff) | |
download | qttools-1f753e86eaaed18e7e5db04d72837e6a7a82171d.tar.gz |
CMake: Add an IMPORTED target for qcollectiongenerator.
This makes it easier to generate assistant documentation with
Sphinx, for example.
Change-Id: Idb45ec47f3c2bcf8a6df313380abf71a4c5a7da5
Reviewed-by: Volker Krause <volker.krause@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
-rw-r--r-- | src/assistant/help/Qt5HelpConfigExtras.cmake.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/assistant/help/Qt5HelpConfigExtras.cmake.in b/src/assistant/help/Qt5HelpConfigExtras.cmake.in new file mode 100644 index 000000000..5a5bd5ceb --- /dev/null +++ b/src/assistant/help/Qt5HelpConfigExtras.cmake.in @@ -0,0 +1,15 @@ + +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() |