Add option of adding generated files to source list

This commit is contained in:
Andy Cedilnik
2002-01-17 14:11:26 -05:00
parent 3df3d839cc
commit e77515c2da
2 changed files with 56 additions and 14 deletions

View File

@@ -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);