Merge topic 'doc-custom-command-depends'

953d34fd Help: Document MAIN_DEPENDENCY limitation in add_custom_command
9859042c Help: Mention add_dependencies in add_custom_target DEPENDS option
This commit is contained in:
Brad King 2014-12-17 14:44:15 -05:00 committed by CMake Topic Stage
commit bd62c52115
2 changed files with 5 additions and 1 deletions

View File

@ -130,7 +130,8 @@ The options are:
Specify the primary input source file to the command. This is Specify the primary input source file to the command. This is
treated just like any value given to the ``DEPENDS`` option treated just like any value given to the ``DEPENDS`` option
but also suggests to Visual Studio generators where to hang but also suggests to Visual Studio generators where to hang
the custom command. the custom command. At most one custom command may specify a
given source file as its main dependency.
``OUTPUT`` ``OUTPUT``
Specify the output files the command is expected to produce. Specify the output files the command is expected to produce.

View File

@ -82,6 +82,9 @@ The options are:
(``CMakeLists.txt`` file). They will be brought up to date when (``CMakeLists.txt`` file). They will be brought up to date when
the target is built. the target is built.
Use the :command:`add_dependencies` command to add dependencies
on other targets.
``SOURCES`` ``SOURCES``
Specify additional source files to be included in the custom target. Specify additional source files to be included in the custom target.
Specified source files will be added to IDE project files for Specified source files will be added to IDE project files for