diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-10-21 18:34:02 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-10-21 18:34:02 (GMT) |
commit | 7cef36c628a8ef07a0c53ea08691e4e6b949a695 (patch) | |
tree | 6dddd32ad310a5a069b66462cc79ca3fea15f024 /Source/cmTarget.h | |
parent | 8ff4c079159a8c5a53017ff1b02c8ac591eb2727 (diff) | |
download | CMake-7cef36c628a8ef07a0c53ea08691e4e6b949a695.zip CMake-7cef36c628a8ef07a0c53ea08691e4e6b949a695.tar.gz CMake-7cef36c628a8ef07a0c53ea08691e4e6b949a695.tar.bz2 |
ENH: add the ability to generate custom commands for a language that is not supported by an IDE
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 8599189..631de55 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -55,9 +55,9 @@ public: /** * Indicate whether the target is part of the all target */ - bool IsInAll() const { return m_InAll; } - bool GetInAll() const { return m_InAll; } - void SetInAll(bool f) { m_InAll = f; } + bool IsInAll() const { return this->GetPropertyAsBool("IN_ALL"); } + bool GetInAll() const { return this->GetPropertyAsBool("IN_ALL"); } + void SetInAll(bool f) { this->SetProperty("IN_ALL", (f) ? "TRUE" : "FALSE"); } /** * Get the list of the custom commands for this target @@ -157,6 +157,14 @@ public: ///! Return the prefered linker language for this target const char* GetLinkerLanguage(cmGlobalGenerator*) const; + + ///! Return the rule variable used to create this type of target, + // need to add CMAKE_(LANG) for full name. + const char* GetCreateRuleVariable(); + ///! Return the name of the variable to look up the target suffix + const char* GetSuffixVariable() const; + ///! Return the name of the variable to look up the target suffix + const char* GetPrefixVariable() const; private: /** * A list of direct dependencies. Use in conjunction with DependencyMap. @@ -223,7 +231,6 @@ private: LinkLibraries m_LinkLibraries; LinkLibraries m_PrevLinkedLibraries; std::vector<std::string> m_LinkDirectories; - bool m_InAll; std::string m_InstallPath; std::string m_RuntimeInstallPath; std::set<cmStdString> m_Utilities; |