summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-01-30 15:45:41 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2019-01-30 16:30:18 (GMT)
commit17ac7c4024147386bd059523eff12951f3c0ef7d (patch)
treeee13ed5e273ca8a5959f6cd35496dac26c2cc054 /Tests/RunCMake/CMakeLists.txt
parent748d024551d8f447046363ad617fc72bdd977fd2 (diff)
downloadCMake-17ac7c4024147386bd059523eff12951f3c0ef7d.zip
CMake-17ac7c4024147386bd059523eff12951f3c0ef7d.tar.gz
CMake-17ac7c4024147386bd059523eff12951f3c0ef7d.tar.bz2
Tests: add cases for providing Qt5Core_VERSION manually
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 2de90e7..1f3e5c3 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -150,7 +150,14 @@ if(NOT CMake_TEST_EXTERNAL_CMAKE)
endif()
add_RunCMake_test(AndroidTestUtilities)
-add_RunCMake_test(Autogen)
+set(autogen_with_qt5 FALSE)
+if(CMake_TEST_Qt5)
+ find_package(Qt5Widgets QUIET NO_MODULE)
+endif()
+if(CMake_TEST_Qt5 AND Qt5Widgets_FOUND)
+ set(autogen_with_qt5 TRUE)
+endif ()
+add_RunCMake_test(Autogen -Dwith_qt5=${autogen_with_qt5})
add_RunCMake_test(BuildDepends)
if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Unix Makefiles|Ninja")
add_RunCMake_test(Byproducts)