1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc.
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
8 This software is distributed WITHOUT ANY WARRANTY; without even the
9 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License for more information.
11 ============================================================================*/
12 #ifndef cmCTestReadCustomFilesCommand_h
13 #define cmCTestReadCustomFilesCommand_h
15 #include "cmCTestCommand.h"
17 /** \class cmCTestReadCustomFiles
18 * \brief Run a ctest script
20 * cmLibrarysCommand defines a list of executable (i.e., test)
23 class cmCTestReadCustomFilesCommand : public cmCTestCommand
27 cmCTestReadCustomFilesCommand() {}
30 * This is a virtual constructor for the command.
32 virtual cmCommand* Clone()
34 cmCTestReadCustomFilesCommand* ni = new cmCTestReadCustomFilesCommand;
35 ni->CTest = this->CTest;
40 * This is called when the command is first encountered in
41 * the CMakeLists.txt file.
43 virtual bool InitialPass(std::vector<std::string> const& args,
44 cmExecutionStatus &status);
47 * The name of the command as specified in CMakeList.txt.
49 virtual const char* GetName() const { return "ctest_read_custom_files";}
52 * Succinct documentation.
54 virtual const char* GetTerseDocumentation() const
56 return "read CTestCustom files.";
62 virtual const char* GetFullDocumentation() const
65 " ctest_read_custom_files( directory ... )\n"
66 "Read all the CTestCustom.ctest or CTestCustom.cmake files from "
67 "the given directory.";
70 cmTypeMacro(cmCTestReadCustomFilesCommand, cmCTestCommand);