2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2002-12-21 19:14:47 +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.
|
2002-12-21 19:14:47 +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.
|
|
|
|
============================================================================*/
|
2002-12-21 19:14:47 +03:00
|
|
|
#ifndef cmGetTargetPropertyCommand_h
|
|
|
|
#define cmGetTargetPropertyCommand_h
|
|
|
|
|
|
|
|
#include "cmCommand.h"
|
|
|
|
|
|
|
|
class cmGetTargetPropertyCommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual cmCommand* Clone()
|
|
|
|
{
|
|
|
|
return new cmGetTargetPropertyCommand;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the input file.
|
|
|
|
*/
|
2008-01-23 18:28:26 +03:00
|
|
|
virtual bool InitialPass(std::vector<std::string> const& args,
|
|
|
|
cmExecutionStatus &status);
|
2002-12-21 19:14:47 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the command as specified in CMakeList.txt.
|
|
|
|
*/
|
2007-10-10 19:47:43 +04:00
|
|
|
virtual const char* GetName() { return "get_target_property";}
|
2002-12-21 19:14:47 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Succinct documentation.
|
|
|
|
*/
|
|
|
|
virtual const char* GetTerseDocumentation()
|
|
|
|
{
|
2003-02-15 02:47:16 +03:00
|
|
|
return "Get a property from a target.";
|
2002-12-21 19:14:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Longer documentation.
|
|
|
|
*/
|
|
|
|
virtual const char* GetFullDocumentation()
|
|
|
|
{
|
|
|
|
return
|
2007-10-10 19:47:43 +04:00
|
|
|
" get_target_property(VAR target property)\n"
|
2005-09-21 21:31:43 +04:00
|
|
|
"Get a property from a target. The value of the property is "
|
2005-11-16 20:10:37 +03:00
|
|
|
"stored in the variable VAR. If the property is not found, VAR "
|
2007-10-10 19:47:43 +04:00
|
|
|
"will be set to \"NOTFOUND\". Use set_target_properties to set "
|
2003-02-15 02:47:16 +03:00
|
|
|
"property values. Properties are usually used to control how "
|
2009-01-05 17:53:22 +03:00
|
|
|
"a target is built, but some query the target instead. "
|
2005-11-16 20:11:14 +03:00
|
|
|
"This command can get properties for any target so far created. "
|
2005-06-20 22:00:48 +04:00
|
|
|
"The targets do not need to be in the current CMakeLists.txt file.";
|
2002-12-21 19:14:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
cmTypeMacro(cmGetTargetPropertyCommand, cmCommand);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|