[cmake-commits] alex committed cmExtraCodeBlocksGenerator.cxx 1.16 1.17

cmake-commits at cmake.org cmake-commits at cmake.org
Sun Nov 25 06:21:40 EST 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv30671

Modified Files:
	cmExtraCodeBlocksGenerator.cxx 
Log Message:
ENH: also add the experimental, nightly, package_source, preinstall and
rebuild_cache targets 

Alex


Index: cmExtraCodeBlocksGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmExtraCodeBlocksGenerator.cxx,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- cmExtraCodeBlocksGenerator.cxx	25 Nov 2007 10:26:58 -0000	1.16
+++ cmExtraCodeBlocksGenerator.cxx	25 Nov 2007 11:21:38 -0000	1.17
@@ -145,9 +145,15 @@
         "      <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 @@
         {
           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:



More information about the Cmake-commits mailing list