ENH: keep cleaning up Tcl/Tk modules
[cmake.git] / Source / CTest / cmCTestCoverageCommand.cxx
blob58e2760036c8f1c257e13ae30ad3ef0a015d1790
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestCoverageCommand.cxx,v $
5 Language: C++
6 Date: $Date: 2006-03-29 17:33:41 $
7 Version: $Revision: 1.8 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #include "cmCTestCoverageCommand.h"
19 #include "cmCTest.h"
20 #include "cmCTestGenericHandler.h"
22 cmCTestGenericHandler* cmCTestCoverageCommand::InitializeHandler()
24 this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
25 "CoverageCommand", "CTEST_COVERAGE_COMMAND");
27 cmCTestGenericHandler* handler
28 = this->CTest->GetInitializedHandler("coverage");
29 if ( !handler )
31 this->SetError("internal CTest error. Cannot instantiate test handler");
32 return 0;
34 return handler;