diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-07 16:24:22 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-07 16:24:22 (GMT) |
commit | 2c2291bbe03aec2dd6637a5311204f09ff6c58ba (patch) | |
tree | 35947ba07840f9ea939e33567c1e6c3e79a37132 /Source/cmake.cxx | |
parent | a8620773f3b934752062015a0df9fbe100e10dc7 (diff) | |
download | CMake-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.cxx | 8 |
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 |