diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-11-17 15:39:19 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-23 00:13:46 +0100 |
commit | 9ffd7a339f0da644c95e71583134263c06745ed5 (patch) | |
tree | 4407a01b28fffdd0474f60ae367ec6551737f82f /qmake/property.cpp | |
parent | a25d0ef3c24286602f7d9e80206b37f8ada7ac04 (diff) |
Added build system support for installing tests.
Tests will install under $$[QT_INSTALL_TESTS].
TESTDATA may be used to install additional testdata required by the
test.
The default install rule may be disabled by
CONFIG+=no_testcase_installs.
Change-Id: I204de60c8e844775906ffd016ca50bffbb414142
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'qmake/property.cpp')
-rw-r--r-- | qmake/property.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qmake/property.cpp b/qmake/property.cpp index 24312287a4..29e3857838 100644 --- a/qmake/property.cpp +++ b/qmake/property.cpp @@ -93,6 +93,8 @@ QMakeProperty::value(QString v, bool just_check) return QLibraryInfo::location(QLibraryInfo::LibrariesPath); else if(v == "QT_INSTALL_BINS") return QLibraryInfo::location(QLibraryInfo::BinariesPath); + else if(v == "QT_INSTALL_TESTS") + return QLibraryInfo::location(QLibraryInfo::TestsPath); else if(v == "QT_INSTALL_PLUGINS") return QLibraryInfo::location(QLibraryInfo::PluginsPath); else if(v == "QT_INSTALL_IMPORTS") @@ -199,6 +201,7 @@ QMakeProperty::exec() specialProps.append("QT_INSTALL_HEADERS"); specialProps.append("QT_INSTALL_LIBS"); specialProps.append("QT_INSTALL_BINS"); + specialProps.append("QT_INSTALL_TESTS"); specialProps.append("QT_INSTALL_PLUGINS"); specialProps.append("QT_INSTALL_IMPORTS"); specialProps.append("QT_INSTALL_TRANSLATIONS"); |