summaryrefslogtreecommitdiffstats
path: root/Help/command/target_sources.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-25 15:00:08 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-10-25 15:00:16 (GMT)
commit68b8fc4a8c4489ec2852ff1f28f1a7e861746ee9 (patch)
treecafc762ddcd625ba840242484da0d3ffe3a226f2 /Help/command/target_sources.rst
parent57cb90ae7141b344953c9f857663645d8784c6f4 (diff)
parentadbaadf0eef855aeb043babceae67e324b69fef0 (diff)
downloadCMake-68b8fc4a8c4489ec2852ff1f28f1a7e861746ee9.zip
CMake-68b8fc4a8c4489ec2852ff1f28f1a7e861746ee9.tar.gz
CMake-68b8fc4a8c4489ec2852ff1f28f1a7e861746ee9.tar.bz2
Merge topic 'project-commands'
adbaadf0ee Help: Apply syntax highlighting to project commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2525
Diffstat (limited to 'Help/command/target_sources.rst')
-rw-r--r--Help/command/target_sources.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Help/command/target_sources.rst b/Help/command/target_sources.rst
index 5dd8d86..27e737b 100644
--- a/Help/command/target_sources.rst
+++ b/Help/command/target_sources.rst
@@ -3,13 +3,13 @@ target_sources
Add sources to a target.
-::
+.. code-block:: cmake
target_sources(<target>
<INTERFACE|PUBLIC|PRIVATE> [items1...]
[<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])
-Specify sources to use when compiling a given target. Relative
+Specifies sources to use when compiling a given target. Relative
source file paths are interpreted as being relative to the current
source directory (i.e. :variable:`CMAKE_CURRENT_SOURCE_DIR`). The
named ``<target>`` must have been created by a command such as