summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/RerunMocOnAddFile/CMakeLists.txt
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-10-05 12:26:40 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-10-05 12:27:02 (GMT)
commita31447417f65ac37c4a4966fc7314c40b3fca91b (patch)
tree79ab98c7addd0e6d0183f31c95f53105760254e7 /Tests/QtAutogen/RerunMocOnAddFile/CMakeLists.txt
parent1b21eb82126bb350a4cbe8b2f7969913407b81a8 (diff)
parenta7420884723c4fb09e6370fb25710a2172c10a0c (diff)
downloadCMake-a31447417f65ac37c4a4966fc7314c40b3fca91b.zip
CMake-a31447417f65ac37c4a4966fc7314c40b3fca91b.tar.gz
CMake-a31447417f65ac37c4a4966fc7314c40b3fca91b.tar.bz2
Merge topic 'qt6-tests'
a742088472 Tests: Add support for testing Qt6 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6587
Diffstat (limited to 'Tests/QtAutogen/RerunMocOnAddFile/CMakeLists.txt')
-rw-r--r--Tests/QtAutogen/RerunMocOnAddFile/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/QtAutogen/RerunMocOnAddFile/CMakeLists.txt b/Tests/QtAutogen/RerunMocOnAddFile/CMakeLists.txt
index 2677659..3a9244d 100644
--- a/Tests/QtAutogen/RerunMocOnAddFile/CMakeLists.txt
+++ b/Tests/QtAutogen/RerunMocOnAddFile/CMakeLists.txt
@@ -1,6 +1,6 @@
# This test checks whether adding a source file to the project triggers an AUTOMOC re-run.
-cmake_minimum_required(VERSION 3.10)
+cmake_minimum_required(VERSION 3.16)
project(RerunMocOnAddFile)
include("../AutogenCoreTest.cmake")
@@ -64,6 +64,7 @@ try_compile(MOC_RERUN
MocOnAddFile
CMAKE_FLAGS "-DQT_TEST_VERSION=${QT_TEST_VERSION}"
"-DCMAKE_AUTOGEN_VERBOSE=${CMAKE_AUTOGEN_VERBOSE}"
+ "-DCMAKE_PREFIX_PATH:STRING=${CMAKE_PREFIX_PATH}"
"-DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE}"
OUTPUT_VARIABLE output
)