Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / CTest / cmCTestEmptyBinaryDirectoryCommand.h
blob53155ade055c5ea88a6fa2563ef9784a877f1a30
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestEmptyBinaryDirectoryCommand.h,v $
5 Language: C++
6 <<<<<<< cmCTestEmptyBinaryDirectoryCommand.h
7 Date: $Date: 2008/01/23 15:28:01 $
8 Version: $Revision: 1.4 $
9 =======
10 Date: $Date: 2008-05-12 13:11:51 $
11 Version: $Revision: 1.5 $
12 >>>>>>> 1.5
14 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
15 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
17 This software is distributed WITHOUT ANY WARRANTY; without even
18 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19 PURPOSE. See the above copyright notices for more information.
21 =========================================================================*/
22 #ifndef cmCTestEmptyBinaryDirectoryCommand_h
23 #define cmCTestEmptyBinaryDirectoryCommand_h
25 #include "cmCTestCommand.h"
27 /** \class cmCTestEmptyBinaryDirectory
28 * \brief Run a ctest script
30 * cmLibrarysCommand defines a list of executable (i.e., test)
31 * programs to create.
33 class cmCTestEmptyBinaryDirectoryCommand : public cmCTestCommand
35 public:
37 cmCTestEmptyBinaryDirectoryCommand() {}
39 /**
40 * This is a virtual constructor for the command.
42 virtual cmCommand* Clone()
44 cmCTestEmptyBinaryDirectoryCommand* ni
45 = new cmCTestEmptyBinaryDirectoryCommand;
46 ni->CTest = this->CTest;
47 ni->CTestScriptHandler = this->CTestScriptHandler;
48 return ni;
51 /**
52 * This is called when the command is first encountered in
53 * the CMakeLists.txt file.
55 virtual bool InitialPass(std::vector<std::string> const& args,
56 cmExecutionStatus &status);
58 /**
59 * The name of the command as specified in CMakeList.txt.
61 virtual const char* GetName() { return "ctest_empty_binary_directory";}
63 /**
64 * Succinct documentation.
66 virtual const char* GetTerseDocumentation()
68 return "empties the binary directory";
71 /**
72 * More documentation.
74 virtual const char* GetFullDocumentation()
76 return
77 " ctest_empty_binary_directory( directory )\n"
78 "Removes a binary directory. This command will perform some checks "
79 "prior to deleting the directory in an attempt to avoid malicious "
80 "or accidental directory deletion.";
83 cmTypeMacro(cmCTestEmptyBinaryDirectoryCommand, cmCTestCommand);
88 #endif