summaryrefslogtreecommitdiff
path: root/Source/cmSourceFilesCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSourceFilesCommand.h')
-rw-r--r--Source/cmSourceFilesCommand.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmSourceFilesCommand.h b/Source/cmSourceFilesCommand.h
index 235c6b6ce3..924573f386 100644
--- a/Source/cmSourceFilesCommand.h
+++ b/Source/cmSourceFilesCommand.h
@@ -53,6 +53,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* dependent on other packages (use SOURCE_FILES_REQUIRED() to add
* dependent source files).
*
+ * It allows sources to be added even if they are generated by a build
+ * process. This can be achieved usiong GENERATED keyword:
+ * SOURCE_FILES( Project_SRCS
+ * Source1
+ * Source2
+ * ...
+ * GENERATED
+ * SourceThatDoesNotExist )
+ *
* \sa cmSourceFilesRequireCommand
*/
class cmSourceFilesCommand : public cmCommand
@@ -91,7 +100,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- "SOURCE_FILES(NAME file1 file2 ...)";
+ "SOURCE_FILES(NAME file1 file2 ... [ GENERATED generated_file1 ... ])";
}
cmTypeMacro(cmSourceFilesCommand, cmCommand);