summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-23 15:07:24 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-23 15:07:24 (GMT)
commit12dc64c7f5a6ee7a83e010fbb4df36eb3080b864 (patch)
tree20846848bb710492e89643003dcb6c47fda96ce6 /Source/cmGlobalGenerator.h
parentea5564624c3305b7a05a0aad3d93cb1f900e37d4 (diff)
downloadCMake-12dc64c7f5a6ee7a83e010fbb4df36eb3080b864.zip
CMake-12dc64c7f5a6ee7a83e010fbb4df36eb3080b864.tar.gz
CMake-12dc64c7f5a6ee7a83e010fbb4df36eb3080b864.tar.bz2
ENH: Add a notion of a global target
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index 0899152..12a0163 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -20,6 +20,8 @@
#include "cmStandardIncludes.h"
+#include "cmTarget.h" // For cmTargets
+
class cmake;
class cmMakefile;
class cmLocalGenerator;
@@ -111,6 +113,7 @@ public:
return this->m_CMakeInstance; };
void SetConfiguredFilesPath(const char* s){m_ConfiguredFilesPath = s;}
+ cmLocalGenerator* GetLocalGenerator(int p) { return m_LocalGenerators[p];}
void GetLocalGenerators(std::vector<cmLocalGenerator *>&g) { g = m_LocalGenerators;}
void AddLocalGenerator(cmLocalGenerator *lg);
@@ -160,6 +163,18 @@ protected:
void ConfigureRelativePaths();
void SetupTests();
+ void CreateDefaultGlobalTargets(cmTargets* targets);
+ cmTarget CreateGlobalTarget(const char* name, const char* message,
+ const cmCustomCommandLines* commandLines,
+ std::vector<std::string> depends, bool depends_on_all = false);
+
+ virtual const char* GetInstallTargetName() { return "install"; }
+ virtual const char* GetPreinstallTargetName() { return "preinstall"; }
+ virtual const char* GetTestTargetName() { return "test"; }
+ virtual const char* GetPackageTargetName() { return "package"; }
+ virtual const char* GetEditCacheTargetName() { return "edit_cache"; }
+ virtual const char* GetRebuildCacheTargetName() { return "rebuild_cache"; }
+
bool m_ForceUnixPaths;
cmStdString m_FindMakeProgramFile;
cmStdString m_ConfiguredFilesPath;