summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-10 18:54:36 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-10 18:54:36 (GMT)
commitb8a33fb424aa28b710e0ec170814ac380ee057db (patch)
tree23c06b61601d90d4703271fed4f90d2d3df7fee7 /Source/cmInstallCommand.h
parentd2621064e27e38eba984c994746eaee40bc09ebc (diff)
downloadCMake-b8a33fb424aa28b710e0ec170814ac380ee057db.zip
CMake-b8a33fb424aa28b710e0ec170814ac380ee057db.tar.gz
CMake-b8a33fb424aa28b710e0ec170814ac380ee057db.tar.bz2
ENH: Added INSTALL command as a placeholder for a future generic install specification interface. Currently it supports only a SCRIPT option specifying a script to run during the install stage.
Diffstat (limited to 'Source/cmInstallCommand.h')
-rw-r--r--Source/cmInstallCommand.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/Source/cmInstallCommand.h b/Source/cmInstallCommand.h
new file mode 100644
index 0000000..789cc79
--- /dev/null
+++ b/Source/cmInstallCommand.h
@@ -0,0 +1,80 @@
+/*=========================================================================
+
+ Program: CMake - Cross-Platform Makefile Generator
+ Module: $RCSfile$
+ Language: C++
+ Date: $Date$
+ Version: $Revision$
+
+ Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
+ See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. See the above copyright notices for more information.
+
+=========================================================================*/
+#ifndef cmInstallCommand_h
+#define cmInstallCommand_h
+
+#include "cmCommand.h"
+
+/** \class cmInstallCommand
+ * \brief Specifies where to install some files
+ *
+ * cmInstallCommand is a general-purpose interface command for
+ * specifying install rules.
+ */
+class cmInstallCommand : public cmCommand
+{
+public:
+ /**
+ * This is a virtual constructor for the command.
+ */
+ virtual cmCommand* Clone()
+ {
+ return new cmInstallCommand;
+ }
+
+ /**
+ * This is called when the command is first encountered in
+ * the CMakeLists.txt file.
+ */
+ virtual bool InitialPass(std::vector<std::string> const& args);
+
+ /**
+ * The name of the command as specified in CMakeList.txt.
+ */
+ virtual const char* GetName() { return "INSTALL";}
+
+ /**
+ * Succinct documentation.
+ */
+ virtual const char* GetTerseDocumentation()
+ {
+ return "Install rule specification interface command.";
+ }
+
+ /**
+ * More documentation.
+ */
+ virtual const char* GetFullDocumentation()
+ {
+ return
+ " INSTALL(SCRIPT <script1> [SCRIPT <script2> [...]])\n"
+ "Specify rules to run at install time. If SCRIPT is given the "
+ "file named after it will be included in the install scripts. "
+ "Multiple SCRIPTs may be given within a single source directory "
+ "and the scripts will be run in the order given. "
+ "The processing order of these scripts relative to install rules "
+ "generated by INSTALL_TARGETS, INSTALL_FILES, and INSTALL_PROGRAMS "
+ "commands is not specified.\n"
+ "This command is a placeholder for a future larger interface."
+ ;
+ }
+
+ cmTypeMacro(cmInstallCommand, cmCommand);
+};
+
+
+#endif