1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmInstallFilesCommand.h,v $
6 Date: $Date: 2002-07-15 12:44:58 $
7 Version: $Revision: 1.7 $
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 cmInstallFilesCommand_h
18 #define cmInstallFilesCommand_h
20 #include "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 /** \class cmInstallFilesCommand
24 * \brief Specifies where to install some files
26 * cmInstallFilesCommand specifies the relative path where a list of
27 * files should be installed.
29 class cmInstallFilesCommand
: public cmCommand
33 * This is a virtual constructor for the command.
35 virtual cmCommand
* Clone()
37 return new cmInstallFilesCommand
;
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
);
47 * The name of the command as specified in CMakeList.txt.
49 virtual const char* GetName() { return "INSTALL_FILES";}
52 * Succinct documentation.
54 virtual const char* GetTerseDocumentation()
56 return "Create install rules for files";
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();
70 virtual const char* GetFullDocumentation()
73 "INSTALL_FILES(path extension file file ...)\n"
74 "INSTALL_FILES(path regexp)\n"
75 "Create rules to install the listed files into the path. Path is relative to the variable CMAKE_INSTALL_PREFIX. There are two forms for this command. In the first the files can be specified explicitly. If a file specified already has an extension, that extension will be removed first. This is useful for providing lists of source files such as foo.cxx when you want the corresponding foo.h to be installed. A typical extension is .h etc... In the second form any files in the current directory that match the regular expression will be installed.";
78 cmTypeMacro(cmInstallFilesCommand
, cmCommand
);
81 std::string m_TargetName
;
82 std::vector
<std::string
> m_FinalArgs
;