summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-08 15:57:16 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-06-08 15:57:16 (GMT)
commit0ddc9f62e59b2b97625f50eb444093bb36950113 (patch)
treebdba7bdfa514c60404e900724bbe3f52b340fcd9 /Source/cmGlobalGenerator.h
parent79077f83731e598298ec35392911848f87d32f23 (diff)
downloadCMake-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.h13
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