1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmSetSourceFilesPropertiesCommand.h,v $
6 Date: $Date: 2002-08-16 15:17:23 $
7 Version: $Revision: 1.4 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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 "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 class cmSetSourceFilesPropertiesCommand
: public cmCommand
26 virtual cmCommand
* Clone()
28 return new cmSetSourceFilesPropertiesCommand
;
32 * This is called when the command is first encountered in
35 virtual bool InitialPass(std::vector
<std::string
> const& args
);
38 * The name of the command as specified in CMakeList.txt.
40 virtual const char* GetName() { return "SET_SOURCE_FILES_PROPERTIES";}
43 * Succinct documentation.
45 virtual const char* GetTerseDocumentation()
47 return "Set attributes for a specific list of files.";
51 * Longer documentation.
53 virtual const char* GetFullDocumentation()
56 "SET_SOURCE_FILES_PROPERTIES(file1 file2 .. filen PROPERTIES prop1 value1 prop2 value2 ... prop2 valuen)"
57 "Set properties on a file. The syntax for the command is to list all the files you want "
58 "to change, and then provide the values you want to set next. Common boolean properties ABSTRACT, WRAP_EXCLUDE, GENERATED and COMPILE_FLAGS. The first three are boolean properties (use a 1 or 0, TRUE or FALSE) while the COMPILE_FLAGS accepts any string. You can make up your own properties as well.";
61 cmTypeMacro(cmSetSourceFilesPropertiesCommand
, cmCommand
);