ENH: add target properties files
[cmake.git] / Source / cmGetTargetPropertyCommand.h
blobb8f7f57e671efce4c5b4b77331943075dd59cf34
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmGetTargetPropertyCommand.h,v $
5 Language: C++
6 Date: $Date: 2002-12-21 16:14:47 $
7 Version: $Revision: 1.1 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmGetTargetPropertyCommand_h
18 #define cmGetTargetPropertyCommand_h
20 #include "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 class cmGetTargetPropertyCommand : public cmCommand
25 public:
26 virtual cmCommand* Clone()
28 return new cmGetTargetPropertyCommand;
31 /**
32 * This is called when the command is first encountered in
33 * the input file.
35 virtual bool InitialPass(std::vector<std::string> const& args);
37 /**
38 * The name of the command as specified in CMakeList.txt.
40 virtual const char* GetName() { return "GET_TARGET_PROPERTY";}
42 /**
43 * Succinct documentation.
45 virtual const char* GetTerseDocumentation()
47 return "Get a property for a file";
50 /**
51 * Longer documentation.
53 virtual const char* GetFullDocumentation()
55 return
56 "GET_TARGET_PROPERTY(VAR target property) "
57 "Get a property from a source file. The value of the property is "
58 " stored in the variable VAR. If the property is not found, var "
59 "will be set to NOT_FOUND";
62 cmTypeMacro(cmGetTargetPropertyCommand, cmCommand);
67 #endif