1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestReadCustomFilesCommand.h,v $
6 Date: $Date: 2006/03/10 20:03:09 $
7 Version: $Revision: 1.2 $
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 #ifndef cmCTestReadCustomFilesCommand_h
18 #define cmCTestReadCustomFilesCommand_h
20 #include "cmCTestCommand.h"
22 /** \class cmCTestReadCustomFiles
23 * \brief Run a ctest script
25 * cmLibrarysCommand defines a list of executable (i.e., test)
28 class cmCTestReadCustomFilesCommand
: public cmCTestCommand
32 cmCTestReadCustomFilesCommand() {}
35 * This is a virtual constructor for the command.
37 virtual cmCommand
* Clone()
39 cmCTestReadCustomFilesCommand
* ni
= new cmCTestReadCustomFilesCommand
;
40 ni
->CTest
= this->CTest
;
45 * This is called when the command is first encountered in
46 * the CMakeLists.txt file.
48 virtual bool InitialPass(std::vector
<std::string
> const& args
,
49 cmExecutionStatus
&status
);
52 * The name of the command as specified in CMakeList.txt.
54 virtual const char* GetName() { return "ctest_read_custom_files";}
57 * Succinct documentation.
59 virtual const char* GetTerseDocumentation()
61 return "read CTestCustom files.";
67 virtual const char* GetFullDocumentation()
70 " ctest_read_custom_files( directory ... )\n"
71 "Read all the CTestCustom.ctest or CTestCustom.cmake files from "
72 "the given directory.";
75 cmTypeMacro(cmCTestReadCustomFilesCommand
, cmCTestCommand
);