mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 10:18:34 -06:00
Add option of adding generated files to source list
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user