summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-18 02:46:23 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-18 02:46:23 (GMT)
commit3de7010216202e59eb05968bf12fb0811ff478ca (patch)
treeddbfd9a9f0115fa0935432f6f9a1b1a55831034e /Source/cmCTest.h
parent17619508e9d651f32cbd8d5bfbea6ac94ef975fc (diff)
downloadCMake-3de7010216202e59eb05968bf12fb0811ff478ca.zip
CMake-3de7010216202e59eb05968bf12fb0811ff478ca.tar.gz
CMake-3de7010216202e59eb05968bf12fb0811ff478ca.tar.bz2
ENH: Add method to get the relative path to source or build
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index bb53b10..2039350 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -183,6 +183,9 @@ public:
//! Get the path to CTest
const char* GetCTestExecutable() { return m_CTestSelf.c_str(); }
+ //! Get the short path to the file. This means if the file is in binary or
+ //source directory, it will become /.../relative/path/to/file
+ std::string GetShortPathToFile(const char* fname);
private:
// these are helper classes