diff options
author | Brad King <brad.king@kitware.com> | 2008-10-09 15:01:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-10-09 15:01:23 (GMT) |
commit | c5f70ff27fb7ea9d2421b4cc25e303f171612525 (patch) | |
tree | 37012c7d62a1d729b70437e867a4fe3f83c6dc7d /Source/cmAddCustomTargetCommand.h | |
parent | 0ad5eb177b4b1f56c1ae29445575dc63d4ddf0eb (diff) | |
download | CMake-c5f70ff27fb7ea9d2421b4cc25e303f171612525.zip CMake-c5f70ff27fb7ea9d2421b4cc25e303f171612525.tar.gz CMake-c5f70ff27fb7ea9d2421b4cc25e303f171612525.tar.bz2 |
ENH: Allow custom sources in custom targets
This adds a SOURCES option to ADD_CUSTOM_TARGET, enabling users to
specify extra sources for inclusion in the target. Such sources may not
build, but will show up in the IDE project files for convenient editing.
See issue #5848.
Diffstat (limited to 'Source/cmAddCustomTargetCommand.h')
-rw-r--r-- | Source/cmAddCustomTargetCommand.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmAddCustomTargetCommand.h b/Source/cmAddCustomTargetCommand.h index c988e63..9eef444 100644 --- a/Source/cmAddCustomTargetCommand.h +++ b/Source/cmAddCustomTargetCommand.h @@ -68,7 +68,8 @@ public: " [COMMAND command2 [args2...] ...]\n" " [DEPENDS depend depend depend ... ]\n" " [WORKING_DIRECTORY dir]\n" - " [COMMENT comment] [VERBATIM])\n" + " [COMMENT comment] [VERBATIM]\n" + " [SOURCES src1 [src2...]])\n" "Adds a target with the given name that executes the given commands. " "The target has no output file and is ALWAYS CONSIDERED OUT OF DATE " "even if the commands try to create a file with the name of the " @@ -94,7 +95,13 @@ public: "Use of VERBATIM is recommended as it enables correct behavior. " "When VERBATIM is not given the behavior is platform specific. " "In the future VERBATIM may be enabled by default. The only reason " - "it is an option is to preserve compatibility with older CMake code."; + "it is an option is to preserve compatibility with older CMake code." + "\n" + "The SOURCES option specifies additional source files to be included " + "in the custom target. " + "Specified source files will be added to IDE project files for " + "convenience in editing even if they have not build rules." + ; } cmTypeMacro(cmAddCustomTargetCommand, cmCommand); |