|
@@ -287,7 +287,8 @@ std::string cmQtAutoGenerators::ListQt4RccInputs(cmSourceFile* sf,
|
|
|
return entriesList;
|
|
return entriesList;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target)
|
|
|
|
|
|
|
+bool cmQtAutoGenerators::InitializeAutogenTarget(cmLocalGenerator* lg,
|
|
|
|
|
+ cmTarget* target)
|
|
|
{
|
|
{
|
|
|
cmMakefile* makefile = target->GetMakefile();
|
|
cmMakefile* makefile = target->GetMakefile();
|
|
|
// don't do anything if there is no Qt4 or Qt5Core (which contains moc):
|
|
// don't do anything if there is no Qt4 or Qt5Core (which contains moc):
|
|
@@ -474,6 +475,10 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target)
|
|
|
/*byproducts=*/rcc_output, depends,
|
|
/*byproducts=*/rcc_output, depends,
|
|
|
commandLines, false, autogenComment.c_str());
|
|
commandLines, false, autogenComment.c_str());
|
|
|
|
|
|
|
|
|
|
+ cmGeneratorTarget* gt = new cmGeneratorTarget(autogenTarget, lg);
|
|
|
|
|
+ lg->GetGlobalGenerator()->AddGeneratorTarget(autogenTarget, gt);
|
|
|
|
|
+ makefile->AddGeneratorTarget(autogenTarget, gt);
|
|
|
|
|
+
|
|
|
// Set target folder
|
|
// Set target folder
|
|
|
const char* autogenFolder = makefile->GetState()
|
|
const char* autogenFolder = makefile->GetState()
|
|
|
->GetGlobalProperty("AUTOMOC_TARGETS_FOLDER");
|
|
->GetGlobalProperty("AUTOMOC_TARGETS_FOLDER");
|