summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-08-03 10:23:07 (GMT)
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-08-03 17:38:16 (GMT)
commit7445c9a58a2444c8918e81a9264b1584001ca013 (patch)
tree08d3c4cdd8d4e255b1023c095be8fae17bc4eba0 /Tests/RunCMake/CMakeLists.txt
parenta79056bb023ae99c2e0f09f49b5d525e7b3eff8a (diff)
downloadCMake-7445c9a58a2444c8918e81a9264b1584001ca013.zip
CMake-7445c9a58a2444c8918e81a9264b1584001ca013.tar.gz
CMake-7445c9a58a2444c8918e81a9264b1584001ca013.tar.bz2
AutoGen: Add test to check for correct AutoMoc dependencies
When using Qt 5.15.0 or above together with Ninja, check that touching a source file of a dependency does not needlessly re-run AUTOMOC for the dependee target.
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index e9f8bca..0b2ef6a 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -134,6 +134,9 @@ if(CMAKE_GENERATOR MATCHES "Ninja")
if(CMAKE_Fortran_COMPILER)
list(APPEND Ninja_ARGS -DTEST_Fortran=1)
endif()
+ if(CMake_TEST_Qt5 AND Qt5Core_FOUND)
+ list(APPEND Ninja_ARGS -DCMake_TEST_Qt5=1 -DCMAKE_TEST_Qt5Core_Version=${Qt5Core_VERSION})
+ endif()
add_RunCMake_test(Ninja)
set(NinjaMultiConfig_ARGS
-DCYGWIN=${CYGWIN}