cmAutogen: Rename method to InitializeAutogenTarget
This reflects better what it is doing.
This commit is contained in:
parent
45735f3827
commit
d2f4b1e3cf
@ -1291,7 +1291,7 @@ void cmGlobalGenerator::CreateQtAutoGeneratorsTargets()
|
|||||||
&& !target.IsImported())
|
&& !target.IsImported())
|
||||||
{
|
{
|
||||||
cmQtAutoGenerators autogen;
|
cmQtAutoGenerators autogen;
|
||||||
if(autogen.InitializeMocSourceFile(&target))
|
if(autogen.InitializeAutogenTarget(&target))
|
||||||
{
|
{
|
||||||
autogens.push_back(std::make_pair(autogen, &target));
|
autogens.push_back(std::make_pair(autogen, &target));
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ static std::string getAutogenTargetDir(cmTarget *target)
|
|||||||
return targetDir;
|
return targetDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmQtAutoGenerators::InitializeMocSourceFile(cmTarget* target)
|
bool cmQtAutoGenerators::InitializeAutogenTarget(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):
|
||||||
|
@ -23,7 +23,7 @@ public:
|
|||||||
cmQtAutoGenerators();
|
cmQtAutoGenerators();
|
||||||
bool Run(const char* targetDirectory, const char *config);
|
bool Run(const char* targetDirectory, const char *config);
|
||||||
|
|
||||||
bool InitializeMocSourceFile(cmTarget* target);
|
bool InitializeAutogenTarget(cmTarget* target);
|
||||||
void SetupAutoGenerateTarget(cmTarget* target);
|
void SetupAutoGenerateTarget(cmTarget* target);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user