cmCTestMemCheckCommand.cxx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #include "cmCTestMemCheckCommand.h"
  14. #include "cmCTest.h"
  15. #include "cmCTestGenericHandler.h"
  16. cmCTestGenericHandler* cmCTestMemCheckCommand::InitializeActualHandler()
  17. {
  18. cmCTestGenericHandler* handler
  19. = this->CTest->GetInitializedHandler("memcheck");
  20. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  21. "MemoryCheckCommand", "CTEST_MEMORYCHECK_COMMAND");
  22. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  23. "MemoryCheckCommandOptions", "CTEST_MEMORYCHECK_COMMAND_OPTIONS");
  24. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  25. "MemoryCheckSuppressionFile", "CTEST_MEMORYCHECK_SUPPRESSIONS_FILE");
  26. return handler;
  27. }