diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-25 00:16:49 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-25 00:16:49 (GMT) |
commit | 261acd91093ba5f2bf79f38a9632887ab2dd5f1c (patch) | |
tree | cdd8d71264c8dad88a103098947e418243db8fa9 /Tests/QtAutogen/resourcetester.cpp | |
parent | 6a85d624a8d5e48080785d5aacd48badc4d41d99 (diff) | |
download | CMake-261acd91093ba5f2bf79f38a9632887ab2dd5f1c.zip CMake-261acd91093ba5f2bf79f38a9632887ab2dd5f1c.tar.gz CMake-261acd91093ba5f2bf79f38a9632887ab2dd5f1c.tar.bz2 |
QtAutogen: Use the basename for resource files.
The rcc tool generates a cpp file with a symbol called qInitResources
or called qInitResources_${name}, if the name is passed. The
qInitResources symbol clashes if multiple qrc files are used in
one target.
Always pass the name to ensure that the symbol is unique. This is also
the behavior of the qtx_add_resource macros.
Diffstat (limited to 'Tests/QtAutogen/resourcetester.cpp')
-rw-r--r-- | Tests/QtAutogen/resourcetester.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/QtAutogen/resourcetester.cpp b/Tests/QtAutogen/resourcetester.cpp index 43314e1..0c64d80 100644 --- a/Tests/QtAutogen/resourcetester.cpp +++ b/Tests/QtAutogen/resourcetester.cpp @@ -16,6 +16,8 @@ void ResourceTester::doTest() { if (!QFile::exists(":/CMakeLists.txt")) qApp->exit(EXIT_FAILURE); + if (!QFile::exists(":/main.cpp")) + qApp->exit(EXIT_FAILURE); QTimer::singleShot(0, qApp, SLOT(quit())); } |