Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmLoadCommandCommand.h
blobae769ac792997a71a0a143fb6371b8045f8134d6
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmLoadCommandCommand.h,v $
5 Language: C++
6 Date: $Date: 2008/01/23 15:27:59 $
7 Version: $Revision: 1.9 $
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 cmLoadCommandCommand_h
18 #define cmLoadCommandCommand_h
20 #include "cmCommand.h"
22 /** \class cmLoadCommandCommand
23 * \brief Load in a Command plugin
25 * cmLoadCommandCommand loads a command into CMake
27 class cmLoadCommandCommand : public cmCommand
29 public:
30 /**
31 * This is a virtual constructor for the command.
33 virtual cmCommand* Clone()
35 return new cmLoadCommandCommand;
38 /**
39 * This is called when the command is first encountered in
40 * the CMakeLists.txt file.
42 virtual bool InitialPass(std::vector<std::string> const& args,
43 cmExecutionStatus &status);
45 /**
46 * The name of the command as specified in CMakeList.txt.
48 virtual const char* GetName() {return "load_command";}
50 /**
51 * Succinct documentation.
53 virtual const char* GetTerseDocumentation()
55 return "Load a command into a running CMake.";
58 /**
59 * More documentation.
61 virtual const char* GetFullDocumentation()
63 return
64 " load_command(COMMAND_NAME <loc1> [loc2 ...])\n"
65 "The given locations are searched for a library whose name is "
66 "cmCOMMAND_NAME. If found, it is loaded as a module and the command "
67 "is added to the set of available CMake commands. Usually, "
68 "TRY_COMPILE is used before this command to compile the module. "
69 "If the command is successfully loaded a variable named\n"
70 " CMAKE_LOADED_COMMAND_<COMMAND_NAME>\n"
71 "will be set to the full path of the module that was loaded. "
72 "Otherwise the variable will not be set.";
75 cmTypeMacro(cmLoadCommandCommand, cmCommand);
80 #endif