summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallFilesCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-09-17 14:56:18 (GMT)
committerBrad King <brad.king@kitware.com>2002-09-17 14:56:18 (GMT)
commite5e0132203ab8b8c2391ad7847cf2204d1e44639 (patch)
tree30d559407bd0f6077ed040636d0d4b98400544aa /Source/cmInstallFilesCommand.h
parent222b04f6d9a73d202faea473ab1c5c7991ca75e6 (diff)
downloadCMake-e5e0132203ab8b8c2391ad7847cf2204d1e44639.zip
CMake-e5e0132203ab8b8c2391ad7847cf2204d1e44639.tar.gz
CMake-e5e0132203ab8b8c2391ad7847cf2204d1e44639.tar.bz2
ENH: Improved implementation of INSTALL_FILES and INSTALL_PROGRAMS commands. Source paths can now be relative or full paths, and don't need to be in the same directory as the CMakeLists.txt file.
Diffstat (limited to 'Source/cmInstallFilesCommand.h')
-rw-r--r--Source/cmInstallFilesCommand.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/Source/cmInstallFilesCommand.h b/Source/cmInstallFilesCommand.h
index 7297bbc..2c78c5f 100644
--- a/Source/cmInstallFilesCommand.h
+++ b/Source/cmInstallFilesCommand.h
@@ -72,14 +72,29 @@ public:
return
"INSTALL_FILES(path extension file file ...)\n"
"INSTALL_FILES(path regexp)\n"
- "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.";
+ "INSTALL_FILES(path FILES file file ...)\n"
+ "Create rules to install the listed files into the path. Path is\n"
+ "relative to the variable CMAKE_INSTALL_PREFIX. There are three forms for\n"
+ "this command. In the first the files can be specified explicitly. If a\n"
+ "file specified already has an extension, that extension will be\n"
+ "removed first. This is useful for providing lists of source files such\n"
+ "as foo.cxx when you want the corresponding foo.h to be installed. A\n"
+ "typical extension is .h etc... In the second form any files in the\n"
+ "current directory that match the regular expression will be installed.\n"
+ "In the third form, any files listed after the FILES keyword will be\n"
+ "installed explicitly from the names given. Full paths are allowed in\n"
+ "this form.";
}
cmTypeMacro(cmInstallFilesCommand, cmCommand);
+protected:
+ std::string FindInstallSource(const char* name) const;
+
private:
std::string m_TargetName;
std::vector<std::string> m_FinalArgs;
+ bool m_IsFilesForm;
};