CVS resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmSetSourceFilesPropertiesCommand.h
blobd4cdb3e0e9b437a5c4d401b3ce0ef17da68d5722
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmSetSourceFilesPropertiesCommand.h,v $
5 Language: C++
6 Date: $Date: 2008/01/23 15:27:59 $
7 Version: $Revision: 1.15 $
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 cmSetSourceFilesPropertiesCommand_h
18 #define cmSetSourceFilesPropertiesCommand_h
20 #include "cmCommand.h"
22 class cmSetSourceFilesPropertiesCommand : public cmCommand
24 public:
25 virtual cmCommand* Clone()
27 return new cmSetSourceFilesPropertiesCommand;
30 /**
31 * This is called when the command is first encountered in
32 * the input file.
34 virtual bool InitialPass(std::vector<std::string> const& args,
35 cmExecutionStatus &status);
37 /**
38 * The name of the command as specified in CMakeList.txt.
40 virtual const char* GetName() { return "set_source_files_properties";}
42 /**
43 * Succinct documentation.
45 virtual const char* GetTerseDocumentation()
47 return "Source files can have properties that affect how they are built.";
50 /**
51 * Longer documentation.
53 virtual const char* GetFullDocumentation()
55 return
56 " set_source_files_properties(file1 file2 ...\n"
57 " PROPERTIES prop1 value1\n"
58 " prop2 value2 ...)\n"
59 "Set properties on a file. The syntax for the command is to list all "
60 "the files you want "
61 "to change, and then provide the values you want to set next. You "
62 "can make up your own properties as well. "
63 "The following are used by CMake. "
64 "The ABSTRACT flag (boolean) is used by some class wrapping "
65 "commands. "
66 "If WRAP_EXCLUDE (boolean) is true then many wrapping commands "
67 "will ignore this file. If GENERATED (boolean) is true then it "
68 "is not an error if this source file does not exist when it is "
69 "added to a target. Obviously, "
70 "it must be created (presumably by a custom command) before the "
71 "target is built. "
72 "If the HEADER_FILE_ONLY (boolean) property is true then dependency "
73 "information is not created for that file (this is set "
74 "automatically, based on the file's name's extension and is probably "
75 "only used by Makefiles). "
76 "OBJECT_DEPENDS (string) adds dependencies to the object file. "
77 "COMPILE_FLAGS (string) is passed to the compiler as additional "
78 "command line arguments when the source file is compiled. "
79 "LANGUAGE (string) CXX|C will change the default compiler used "
80 "to compile the source file. The languages used need to be enabled "
81 "in the PROJECT command. "
82 "If SYMBOLIC (boolean) is set to true the build system will be "
83 "informed that the source file is not actually created on disk but "
84 "instead used as a symbolic name for a build rule.";
88 cmTypeMacro(cmSetSourceFilesPropertiesCommand, cmCommand);
90 static bool RunCommand(cmMakefile *mf,
91 std::vector<std::string>::const_iterator filebeg,
92 std::vector<std::string>::const_iterator fileend,
93 std::vector<std::string>::const_iterator propbeg,
94 std::vector<std::string>::const_iterator propend,
95 std::string &errors);
100 #endif