summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/main.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-10-11 18:16:43 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-10-24 09:50:58 (GMT)
commit18fb7588df5b380340423eb36a90a7aefc1fa6ca (patch)
tree74aa97dc12bab52f5b1577b3ba9d227b95ce39c3 /Tests/QtAutogen/main.cpp
parente485ba12193d36ffc4faee89bb80dbe611ad7e82 (diff)
downloadCMake-18fb7588df5b380340423eb36a90a7aefc1fa6ca.zip
CMake-18fb7588df5b380340423eb36a90a7aefc1fa6ca.tar.gz
CMake-18fb7588df5b380340423eb36a90a7aefc1fa6ca.tar.bz2
Run the main executable created in the autogen tests.
Don't try to show the windows, which would require a gui capable test machine, and that's not guaranteed. Automatically link to qtmain.a on Windows to avoid a policy warning. Set policy CMP0020 to NEW by increasing the required version. Don't attempt to run the test when using Windows.
Diffstat (limited to 'Tests/QtAutogen/main.cpp')
-rw-r--r--Tests/QtAutogen/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tests/QtAutogen/main.cpp b/Tests/QtAutogen/main.cpp
index bd80180..39597ba 100644
--- a/Tests/QtAutogen/main.cpp
+++ b/Tests/QtAutogen/main.cpp
@@ -56,10 +56,9 @@ int main(int argv, char **args)
CodeEditor editor;
editor.setWindowTitle(QObject::tr("Code Editor Example"));
- editor.show();
Window w;
- w.show();
+ w.setWindowTitle(QObject::tr("Window Example"));
Foo foo;
foo.doFoo();