aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-09-21 19:12:38 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-09-21 21:03:15 +0200
commitc31e3af73e5b58f69438a6afa3fb3d73676c7cd7 (patch)
treec0ae99c4b60882bdd017f0367c1885475794b972 /tools
parent2558f30fef0ce713e5fbf288e559a55fd1c55972 (diff)
CMake: Install public qmake .prf files into the prefix mkspecs dir
These are needed for qmake projects. Fixes: QTBUG-86802 Task-number: QTBUG-86498 Change-Id: I09c05a358fa580a3a9eab002c6ada42ad70e999c Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlcachegen/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/qmlcachegen/CMakeLists.txt b/tools/qmlcachegen/CMakeLists.txt
index 8bc705d3a8..8cbe8dcfac 100644
--- a/tools/qmlcachegen/CMakeLists.txt
+++ b/tools/qmlcachegen/CMakeLists.txt
@@ -49,3 +49,15 @@ qt_add_tool(${target_name}
#### Keys ignored in scope 5:.:.:qmlcachegen.pro:QMAKE_HOST.os___equals___Windows:
# CMAKE_BIN_SUFFIX = ".exe"
+
+# special case begin
+# Install public prf files.
+set(qmlcachegen_mkspecs
+ "${CMAKE_CURRENT_SOURCE_DIR}/qmlcache.prf"
+ "${CMAKE_CURRENT_SOURCE_DIR}/qtquickcompiler.prf"
+ )
+set(mkspecs_install_dir "${INSTALL_MKSPECSDIR}")
+qt_path_join(mkspecs_install_dir "${QT_INSTALL_DIR}" "${mkspecs_install_dir}" "features")
+qt_copy_or_install(FILES "${qmlcachegen_mkspecs}"
+ DESTINATION ${mkspecs_install_dir})
+# special case end