summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-01-07 16:24:22 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-01-07 16:24:22 (GMT)
commit2c2291bbe03aec2dd6637a5311204f09ff6c58ba (patch)
tree35947ba07840f9ea939e33567c1e6c3e79a37132 /Source/cmake.cxx
parenta8620773f3b934752062015a0df9fbe100e10dc7 (diff)
downloadCMake-2c2291bbe03aec2dd6637a5311204f09ff6c58ba.zip
CMake-2c2291bbe03aec2dd6637a5311204f09ff6c58ba.tar.gz
CMake-2c2291bbe03aec2dd6637a5311204f09ff6c58ba.tar.bz2
ENH: add new feature to ctest so that it can cmake, build and run a test executable
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 19172f9..92ff2d7 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -532,6 +532,14 @@ int cmake::AddCMakePaths(const char *arg0)
editCacheCommand = cmSystemTools::GetFilenamePath(cMakeSelf) +
"/CMakeSetup" + cmSystemTools::GetFilenameExtension(cMakeSelf);
}
+ std::string ctestCommand = cmSystemTools::GetFilenamePath(cMakeSelf) +
+ "/ctest" + cmSystemTools::GetFilenameExtension(cMakeSelf);
+ if(cmSystemTools::FileExists(ctestCommand.c_str()))
+ {
+ this->m_CacheManager->AddCacheEntry
+ ("CMAKE_CTEST_COMMAND", ctestCommand.c_str(),
+ "Path to ctest program executable.", cmCacheManager::INTERNAL);
+ }
if(cmSystemTools::FileExists(editCacheCommand.c_str()))
{
this->m_CacheManager->AddCacheEntry