ENH: mark some vars as advanced (and resort the list)
[cmake.git] / Source / cmInstallProgramsCommand.h
blobaaf5d0b0d2d51282f51ddca1a4695293c17dd507
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmInstallProgramsCommand.h,v $
5 Language: C++
6 Date: $Date: 2002-09-17 14:56:18 $
7 Version: $Revision: 1.5 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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 cmInstallProgramsCommand_h
18 #define cmInstallProgramsCommand_h
20 #include "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 /** \class cmInstallProgramsCommand
24 * \brief Specifies where to install some programs
26 * cmInstallProgramsCommand specifies the relative path where a list of
27 * programs should be installed.
29 class cmInstallProgramsCommand : public cmCommand
31 public:
32 /**
33 * This is a virtual constructor for the command.
35 virtual cmCommand* Clone()
37 return new cmInstallProgramsCommand;
40 /**
41 * This is called when the command is first encountered in
42 * the CMakeLists.txt file.
44 virtual bool InitialPass(std::vector<std::string> const& args);
46 /**
47 * The name of the command as specified in CMakeList.txt.
49 virtual const char* GetName() { return "INSTALL_PROGRAMS";}
51 /**
52 * Succinct documentation.
54 virtual const char* GetTerseDocumentation()
56 return "Create install rules for programs";
59 /**
60 * This is called at the end after all the information
61 * specified by the command is accumulated. Most commands do
62 * not implement this method. At this point, reading and
63 * writing to the cache can be done.
65 virtual void FinalPass();
67 /**
68 * More documentation.
70 virtual const char* GetFullDocumentation()
72 return
73 "INSTALL_PROGRAMS(path file file ...)\n"
74 "INSTALL_PROGRAMS(path regexp)\n"
75 "Create rules to install the listed programs into the path. Path is relative to the variable CMAKE_INSTALL_PREFIX. There are two forms for this command. In the first the programs can be specified explicitly. In the second form any program in the current directory that match the regular expression will be installed.";
78 cmTypeMacro(cmInstallProgramsCommand, cmCommand);
80 protected:
81 std::string FindInstallSource(const char* name) const;
82 private:
83 std::string m_TargetName;
84 std::vector<std::string> m_FinalArgs;
88 #endif