summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-11-25 11:21:38 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-11-25 11:21:38 (GMT)
commit153810cd829656383a8edc82adecf7463800d419 (patch)
tree935956460e70f0f0b1377a187267adb27b3ca496 /Source/cmExtraCodeBlocksGenerator.cxx
parentd0839eb95e2a3a3e582dc6b13beae612a1c6649d (diff)
downloadCMake-153810cd829656383a8edc82adecf7463800d419.zip
CMake-153810cd829656383a8edc82adecf7463800d419.tar.gz
CMake-153810cd829656383a8edc82adecf7463800d419.tar.bz2
ENH: also add the experimental, nightly, package_source, preinstall and
rebuild_cache targets Alex
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx56
1 files changed, 45 insertions, 11 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index 204ada4..4432d50 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -145,9 +145,15 @@ void cmExtraCodeBlocksGenerator
" <Option compiler=\"" << compiler << "\" />\n"
" <Build>\n";
+ bool preinstallTargetCreated = false;
bool installTargetCreated = false;
+ bool installStripTargetCreated = false;
bool testTargetCreated = false;
+ bool experimentalTargetCreated = false;
+ bool nightlyTargetCreated = false;
bool packageTargetCreated = false;
+ bool packageSourceTargetCreated = false;
+ bool rebuildCacheTargetCreated = false;
// add all executable and library targets and some of the GLOBAL targets
for (std::vector<cmLocalGenerator*>::const_iterator lg=lgs.begin();
@@ -162,22 +168,50 @@ void cmExtraCodeBlocksGenerator
{
case cmTarget::GLOBAL_TARGET:
// 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;
- }
- else if ((ti->first=="package") && (packageTargetCreated==false))
- {
- packageTargetCreated=true;
- }
+ }
+ else if ((ti->first=="install/strip")
+ && (installStripTargetCreated==false))
+ {
+ installStripTargetCreated=true;
+ }
else if ((ti->first=="test") && (testTargetCreated==false))
- {
+ {
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
- {
+ {
break;
- }
+ }
case cmTarget::EXECUTABLE:
case cmTarget::STATIC_LIBRARY:
case cmTarget::SHARED_LIBRARY: