ENH: also add the experimental, nightly, package_source, preinstall and
rebuild_cache targets Alex
This commit is contained in:
parent
d0839eb95e
commit
153810cd82
|
@ -145,9 +145,15 @@ void cmExtraCodeBlocksGenerator
|
||||||
" <Option compiler=\"" << compiler << "\" />\n"
|
" <Option compiler=\"" << compiler << "\" />\n"
|
||||||
" <Build>\n";
|
" <Build>\n";
|
||||||
|
|
||||||
|
bool preinstallTargetCreated = false;
|
||||||
bool installTargetCreated = false;
|
bool installTargetCreated = false;
|
||||||
|
bool installStripTargetCreated = false;
|
||||||
bool testTargetCreated = false;
|
bool testTargetCreated = false;
|
||||||
|
bool experimentalTargetCreated = false;
|
||||||
|
bool nightlyTargetCreated = false;
|
||||||
bool packageTargetCreated = false;
|
bool packageTargetCreated = false;
|
||||||
|
bool packageSourceTargetCreated = false;
|
||||||
|
bool rebuildCacheTargetCreated = false;
|
||||||
|
|
||||||
// add all executable and library targets and some of the GLOBAL targets
|
// add all executable and library targets and some of the GLOBAL targets
|
||||||
for (std::vector<cmLocalGenerator*>::const_iterator lg=lgs.begin();
|
for (std::vector<cmLocalGenerator*>::const_iterator lg=lgs.begin();
|
||||||
|
@ -162,22 +168,50 @@ void cmExtraCodeBlocksGenerator
|
||||||
{
|
{
|
||||||
case cmTarget::GLOBAL_TARGET:
|
case cmTarget::GLOBAL_TARGET:
|
||||||
// only add these global targets once
|
// only add these global targets once
|
||||||
if ((ti->first=="install") && (installTargetCreated==false))
|
if ((ti->first=="preinstall") && (preinstallTargetCreated==false))
|
||||||
{
|
{
|
||||||
|
preinstallTargetCreated=true;
|
||||||
|
}
|
||||||
|
else if ((ti->first=="install") && (installTargetCreated==false))
|
||||||
|
{
|
||||||
installTargetCreated=true;
|
installTargetCreated=true;
|
||||||
}
|
}
|
||||||
else if ((ti->first=="package") && (packageTargetCreated==false))
|
else if ((ti->first=="install/strip")
|
||||||
{
|
&& (installStripTargetCreated==false))
|
||||||
packageTargetCreated=true;
|
{
|
||||||
}
|
installStripTargetCreated=true;
|
||||||
|
}
|
||||||
else if ((ti->first=="test") && (testTargetCreated==false))
|
else if ((ti->first=="test") && (testTargetCreated==false))
|
||||||
{
|
{
|
||||||
testTargetCreated=true;
|
testTargetCreated=true;
|
||||||
}
|
}
|
||||||
|
else if ((ti->first=="Experimental")
|
||||||
|
&& (experimentalTargetCreated==false))
|
||||||
|
{
|
||||||
|
experimentalTargetCreated=true;
|
||||||
|
}
|
||||||
|
else if ((ti->first=="Nightly") && (nightlyTargetCreated==false))
|
||||||
|
{
|
||||||
|
nightlyTargetCreated=true;
|
||||||
|
}
|
||||||
|
else if ((ti->first=="package") && (packageTargetCreated==false))
|
||||||
|
{
|
||||||
|
packageTargetCreated=true;
|
||||||
|
}
|
||||||
|
else if ((ti->first=="package_source")
|
||||||
|
&& (packageSourceTargetCreated==false))
|
||||||
|
{
|
||||||
|
packageSourceTargetCreated=true;
|
||||||
|
}
|
||||||
|
else if ((ti->first=="rebuild_cache")
|
||||||
|
&& (rebuildCacheTargetCreated==false))
|
||||||
|
{
|
||||||
|
rebuildCacheTargetCreated=true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case cmTarget::EXECUTABLE:
|
case cmTarget::EXECUTABLE:
|
||||||
case cmTarget::STATIC_LIBRARY:
|
case cmTarget::STATIC_LIBRARY:
|
||||||
case cmTarget::SHARED_LIBRARY:
|
case cmTarget::SHARED_LIBRARY:
|
||||||
|
|
Loading…
Reference in New Issue