summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ObsoleteQtMacros/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-07-04 08:00:27 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-07-14 08:05:04 (GMT)
commitcb7f32f5b861fe115fa71f64500a5cbb0b643f1b (patch)
tree4decc25017cca2777f4f3356d3a355354bec451a /Tests/RunCMake/ObsoleteQtMacros/RunCMakeTest.cmake
parentc64326bc0b2df30060a475e147c136ae5e7234ae (diff)
downloadCMake-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/ObsoleteQtMacros/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/ObsoleteQtMacros/RunCMakeTest.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/ObsoleteQtMacros/RunCMakeTest.cmake b/Tests/RunCMake/ObsoleteQtMacros/RunCMakeTest.cmake
new file mode 100644
index 0000000..eee2cc3
--- /dev/null
+++ b/Tests/RunCMake/ObsoleteQtMacros/RunCMakeTest.cmake
@@ -0,0 +1,6 @@
+include(RunCMake)
+
+set(RunCMake_TEST_OPTIONS -DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE})
+
+run_cmake(UseModulesMacro-WARN)
+run_cmake(AutomocMacro-WARN)