From 15c3e2214692c58e287118ce61eba8579069c7b8 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Mon, 3 May 2021 13:01:56 +0200 Subject: Install mkspecs to support projects using qmake Change-Id: I5676e0ecb68a102bc4542d3b7d97c1e603bb44eb Reviewed-by: Robert Griebl --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() -- cgit v1.2.3