2002-03-29 18:06:30 +03:00
|
|
|
/*=========================================================================
|
|
|
|
|
2002-10-24 02:03:27 +04:00
|
|
|
Program: CMake - Cross-Platform Makefile Generator
|
2002-03-29 18:06:30 +03:00
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
2002-10-24 02:03:27 +04:00
|
|
|
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
|
|
|
|
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
2002-03-29 18:06:30 +03:00
|
|
|
|
|
|
|
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 cmGetSourceFilePropertyCommand_h
|
|
|
|
#define cmGetSourceFilePropertyCommand_h
|
|
|
|
|
|
|
|
#include "cmCommand.h"
|
|
|
|
|
|
|
|
class cmGetSourceFilePropertyCommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual cmCommand* Clone()
|
|
|
|
{
|
|
|
|
return new cmGetSourceFilePropertyCommand;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the input 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 "GET_SOURCE_FILE_PROPERTY";}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Succinct documentation.
|
|
|
|
*/
|
|
|
|
virtual const char* GetTerseDocumentation()
|
|
|
|
{
|
2003-02-15 02:47:16 +03:00
|
|
|
return "Get a property for a source file.";
|
2002-03-29 18:06:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Longer documentation.
|
|
|
|
*/
|
|
|
|
virtual const char* GetFullDocumentation()
|
|
|
|
{
|
|
|
|
return
|
2003-02-15 02:47:16 +03:00
|
|
|
" GET_SOURCE_FILE_PROPERTY(VAR file property)\n"
|
2005-09-21 21:31:43 +04:00
|
|
|
"Get a property from a source file. The value of the property is "
|
2003-02-15 02:47:16 +03:00
|
|
|
"stored in the variable VAR. If the property is not found, var "
|
2005-09-21 21:31:43 +04:00
|
|
|
"will be set to \"NOTFOUND\". Use SET_SOURCE_FILES_PROPERTIES to set "
|
2003-02-15 02:47:16 +03:00
|
|
|
"property values. Source file properties usually control how the "
|
|
|
|
"file is built.";
|
2002-03-29 18:06:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
cmTypeMacro(cmGetSourceFilePropertyCommand, cmCommand);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|