2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2006-02-10 21:54:36 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2006-02-10 21:54:36 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2006-02-10 21:54:36 +03:00
|
|
|
#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.
|
|
|
|
*/
|
2008-01-23 18:28:26 +03:00
|
|
|
virtual bool InitialPass(std::vector<std::string> const& args,
|
|
|
|
cmExecutionStatus &status);
|
2006-02-10 21:54:36 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the command as specified in CMakeList.txt.
|
|
|
|
*/
|
2014-02-25 05:19:17 +04:00
|
|
|
virtual std::string GetName() const { return "install";}
|
2006-02-10 21:54:36 +03:00
|
|
|
|
|
|
|
cmTypeMacro(cmInstallCommand, cmCommand);
|
2006-02-19 23:25:27 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool HandleScriptMode(std::vector<std::string> const& args);
|
|
|
|
bool HandleTargetsMode(std::vector<std::string> const& args);
|
2006-02-20 02:47:13 +03:00
|
|
|
bool HandleFilesMode(std::vector<std::string> const& args);
|
2006-08-17 22:48:54 +04:00
|
|
|
bool HandleDirectoryMode(std::vector<std::string> const& args);
|
2007-06-19 21:10:21 +04:00
|
|
|
bool HandleExportMode(std::vector<std::string> const& args);
|
2012-05-13 17:34:30 +04:00
|
|
|
bool MakeFilesFullPath(const char* modeName,
|
2007-08-28 00:04:57 +04:00
|
|
|
const std::vector<std::string>& relFiles,
|
|
|
|
std::vector<std::string>& absFiles);
|
2008-04-15 01:53:11 +04:00
|
|
|
bool CheckCMP0006(bool& failure);
|
2012-05-13 17:44:37 +04:00
|
|
|
|
|
|
|
std::string DefaultComponentName;
|
2006-02-10 21:54:36 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|