aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2021-05-03 13:01:56 +0200
committerDominik Holland <dominik.holland@qt.io>2021-05-10 11:23:23 +0200
commit15c3e2214692c58e287118ce61eba8579069c7b8 (patch)
treecb64781b619a83809ee7efd1a744180d74881535
parent7f599b1856bd5ba823c8ad63e2ca7e45b71d267e (diff)
Install mkspecs to support projects using qmake
Change-Id: I5676e0ecb68a102bc4542d3b7d97c1e603bb44eb Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index efe23c8..1f1d1d9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,3 +30,14 @@ if(WASM)
return()
endif()
qt_build_repo()
+
+if(NOT QT_BUILD_STANDALONE_TESTS)
+ # Copy mkspecs for users preferring qmake builds
+ set(mkspecs_install_dir "${INSTALL_MKSPECSDIR}")
+ qt_path_join(mkspecs_install_dir ${QT_INSTALL_DIR} ${mkspecs_install_dir})
+
+ qt_copy_or_install(DIRECTORY mkspecs/
+ DESTINATION "${mkspecs_install_dir}"
+ FILES_MATCHING PATTERN "*.pr[if]"
+ )
+endif()