summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-09-22 18:42:05 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-09-22 18:42:05 (GMT)
commit692ba48c4e5762b370f2999e902b8bd677c77161 (patch)
tree0c9465d0e38a15bd0cb043f234b4e4ab0cee51a2 /Source/cmTarget.h
parent597185754420db18d83b2c9e3b9f1e33675bd935 (diff)
downloadCMake-692ba48c4e5762b370f2999e902b8bd677c77161.zip
CMake-692ba48c4e5762b370f2999e902b8bd677c77161.tar.gz
CMake-692ba48c4e5762b370f2999e902b8bd677c77161.tar.bz2
ENH: major changes to support addition of languages from cmake modules directory.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 3ba8690..8599189 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -19,6 +19,7 @@
#include "cmCustomCommand.h"
class cmSourceFile;
+class cmGlobalGenerator;
/** \class cmTarget
* \brief Represent a library or executable target loaded from a makefile.
@@ -46,7 +47,10 @@ public:
/**
* Set the target type
*/
- void SetType(TargetType f);
+ void SetType(TargetType f, const char* name);
+
+ ///! Set/Get the name of the target
+ const char* GetName() const {return m_Name.c_str();}
/**
* Indicate whether the target is part of the all target
@@ -85,11 +89,6 @@ public:
{return m_SourceFiles;}
std::vector<cmSourceFile*> &GetSourceFiles() {return m_SourceFiles;}
- ///! does this target have a cxx file in it
- bool HasCxx() const;
-
- ///! does this target have a fortran file in it
- bool HasFortran() const;
/**
* Get the list of the source files used by this target
*/
@@ -156,6 +155,8 @@ public:
*/
void TraceVSDependencies(std::string projName, cmMakefile *mf);
+ ///! Return the prefered linker language for this target
+ const char* GetLinkerLanguage(cmGlobalGenerator*) const;
private:
/**
* A list of direct dependencies. Use in conjunction with DependencyMap.
@@ -210,7 +211,9 @@ private:
void GatherDependencies( const cmMakefile& mf, const std::string& lib,
DependencyMap& dep_map );
+
private:
+ std::string m_Name;
std::vector<cmCustomCommand> m_PreBuildCommands;
std::vector<cmCustomCommand> m_PreLinkCommands;
std::vector<cmCustomCommand> m_PostBuildCommands;