diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-08 15:57:16 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-08 15:57:16 (GMT) |
commit | 0ddc9f62e59b2b97625f50eb444093bb36950113 (patch) | |
tree | bdba7bdfa514c60404e900724bbe3f52b340fcd9 /Source/cmGlobalGenerator.h | |
parent | 79077f83731e598298ec35392911848f87d32f23 (diff) | |
download | CMake-0ddc9f62e59b2b97625f50eb444093bb36950113.zip CMake-0ddc9f62e59b2b97625f50eb444093bb36950113.tar.gz CMake-0ddc9f62e59b2b97625f50eb444093bb36950113.tar.bz2 |
ENH: add cmExternalMakefileProjectGenerator, which should make it easier to
write generators for IDE projects, which use already existing makefiles
(current the kdevelop generator)
-first stept of the export interface, iniitial export() command
-more replacements for the FIND_XXX docs
Alex
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r-- | Source/cmGlobalGenerator.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h index f19ffb3..96333a2 100644 --- a/Source/cmGlobalGenerator.h +++ b/Source/cmGlobalGenerator.h @@ -19,6 +19,7 @@ #define cmGlobalGenerator_h #include "cmStandardIncludes.h" +#include "cmExternalMakefileProjectGenerator.h" #include "cmTarget.h" // For cmTargets @@ -123,6 +124,13 @@ public: void AddLocalGenerator(cmLocalGenerator *lg); + ///! Set an generator for an "external makefile based project" + void SetExternalMakefileProjectGenerator( + cmExternalMakefileProjectGenerator *extraGenerator); + + const char* GetExtraGeneratorName() const + {return this->ExtraGenerator!=0 ? this->ExtraGenerator->GetName():0;} + void AddInstallComponent(const char* component); void EnableInstallTarget(); @@ -130,6 +138,8 @@ public: bool GetForceUnixPaths() {return this->ForceUnixPaths;} bool GetToolSupportsColor() { return this->ToolSupportsColor; } + bool SetToolSupportsColor(bool enable) { this->ToolSupportsColor = enable; } + ///! return the language for the given extension const char* GetLanguageFromExtension(const char* ext); ///! is an extension to be ignored @@ -196,6 +206,7 @@ public: // what targets does the specified target depend on std::vector<cmTarget *>& GetTargetDepends(cmTarget& target); + const std::map<cmStdString, std::vector<cmLocalGenerator*> >& GetProjectMap() const {return this->ProjectMap;} protected: // Fill the ProjectMap, this must be called after LocalGenerators // has been populated. @@ -242,6 +253,8 @@ private: std::map<cmStdString,cmTarget *> ImportedTotalTargets; std::map<cmStdString, std::vector<cmTarget *> > TargetDependencies; + + cmExternalMakefileProjectGenerator* ExtraGenerator; }; #endif |