forked from qt-creator/qt-creator
		
	AutoTest: Fix basic CMake support...
...at least for C++ based auto tests. Qt Quick Tests are out of scope for this issue as this would need too much additional tweaking for several parts of the plugin. Task-number: QTCREATORBUG-15813 Change-Id: I440a8b1f8e6deb9e6acf2e82d0831fb002c10390 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
		@@ -259,7 +259,7 @@ static bool qtTestLibDefined(const CppTools::CppModelManager *cppMM,
 | 
			
		||||
{
 | 
			
		||||
    const QList<CppTools::ProjectPart::Ptr> parts = cppMM->projectPart(fileName);
 | 
			
		||||
    if (parts.size() > 0)
 | 
			
		||||
        return parts.at(0)->projectDefines.contains("#define QT_TESTLIB_LIB 1");
 | 
			
		||||
        return parts.at(0)->projectDefines.contains("#define QT_TESTLIB_LIB");
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user