diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-07-04 08:00:27 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-07-14 08:05:04 (GMT) |
commit | cb7f32f5b861fe115fa71f64500a5cbb0b643f1b (patch) | |
tree | 4decc25017cca2777f4f3356d3a355354bec451a /Tests/RunCMake/CMakeLists.txt | |
parent | c64326bc0b2df30060a475e147c136ae5e7234ae (diff) | |
download | CMake-cb7f32f5b861fe115fa71f64500a5cbb0b643f1b.zip CMake-cb7f32f5b861fe115fa71f64500a5cbb0b643f1b.tar.gz CMake-cb7f32f5b861fe115fa71f64500a5cbb0b643f1b.tar.bz2 |
Mark qt4_use_modules and qt4_automoc as obsolete.
The QT_QMAKE_EXECUTABLE has to be passed through the cmake calls because
the executable may not be in the PATH.
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r-- | Tests/RunCMake/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index c1a08d2..71246e1 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -101,6 +101,10 @@ find_package(Qt5Core QUIET) if (QT4_FOUND AND Qt5Core_FOUND AND NOT Qt5Core_VERSION VERSION_LESS 5.1.0) add_RunCMake_test(IncompatibleQt) endif() +if (QT4_FOUND) + set(ObsoleteQtMacros_ARGS -DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE}) + add_RunCMake_test(ObsoleteQtMacros) +endif() if("${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio [^6]") add_RunCMake_test(include_external_msproject) |