summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-02-16 21:12:17 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-02-16 21:12:17 (GMT)
commitca0230a33eea074a7beee74dd1ecc50134068359 (patch)
treef7daeb6c8c5d353f16c011976b841e116706336b /Source/cmLocalXCodeGenerator.cxx
parent4d325a45977a00db6d0a8872d751b6cb41071b41 (diff)
downloadCMake-ca0230a33eea074a7beee74dd1ecc50134068359.zip
CMake-ca0230a33eea074a7beee74dd1ecc50134068359.tar.gz
CMake-ca0230a33eea074a7beee74dd1ecc50134068359.tar.bz2
ENH: check in initial conv library stuff
Diffstat (limited to 'Source/cmLocalXCodeGenerator.cxx')
-rw-r--r--Source/cmLocalXCodeGenerator.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/cmLocalXCodeGenerator.cxx b/Source/cmLocalXCodeGenerator.cxx
index c7f6de5..311735d 100644
--- a/Source/cmLocalXCodeGenerator.cxx
+++ b/Source/cmLocalXCodeGenerator.cxx
@@ -1,4 +1,6 @@
#include "cmLocalXCodeGenerator.h"
+#include "cmGlobalXCodeGenerator.h"
+#include "cmSourceFile.h"
cmLocalXCodeGenerator::cmLocalXCodeGenerator()
{
@@ -11,3 +13,26 @@ cmLocalXCodeGenerator::~cmLocalXCodeGenerator()
{
}
+void cmLocalXCodeGenerator::
+GetTargetObjectFileDirectories(cmTarget* target,
+ std::vector<std::string>&
+ dirs)
+{
+ cmGlobalXCodeGenerator* g = (cmGlobalXCodeGenerator*)this->GetGlobalGenerator();
+ g->SetCurrentLocalGenerator(this);
+ g->GetTargetObjectFileDirectories(target,
+ dirs);
+}
+
+ // return the source name for the object file
+std::string cmLocalXCodeGenerator::GetSourceObjectName(cmSourceFile& sf )
+{
+ std::string ret = sf.GetSourceName();
+ std::string::size_type pos = ret.find("/");
+ if(pos == ret.npos)
+ {
+ return ret;
+ }
+ return ret.substr(pos+1);
+}
+