cmCTestMemCheckCommand.cxx 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmCTestMemCheckCommand.h"
  11. #include "cmCTest.h"
  12. #include "cmCTestGenericHandler.h"
  13. cmCTestGenericHandler* cmCTestMemCheckCommand::InitializeActualHandler()
  14. {
  15. cmCTestGenericHandler* handler
  16. = this->CTest->GetInitializedHandler("memcheck");
  17. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  18. "MemoryCheckType", "CTEST_MEMORYCHECK_TYPE");
  19. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  20. "MemoryCheckCommand", "CTEST_MEMORYCHECK_COMMAND");
  21. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  22. "MemoryCheckCommandOptions", "CTEST_MEMORYCHECK_COMMAND_OPTIONS");
  23. this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
  24. "MemoryCheckSuppressionFile", "CTEST_MEMORYCHECK_SUPPRESSIONS_FILE");
  25. return handler;
  26. }