summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-05-30 16:15:59 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-06-02 13:37:21 (GMT)
commit254f2b9058f814e952ef0178e13b3f98e8d216a1 (patch)
treef8f57bbe2a3bc9a88b8a3dafb4b5b9364959acd4 /Help
parent961ca77a7a272fb5cde7e07671a51e9110f9ef36 (diff)
downloadCMake-254f2b9058f814e952ef0178e13b3f98e8d216a1.zip
CMake-254f2b9058f814e952ef0178e13b3f98e8d216a1.tar.gz
CMake-254f2b9058f814e952ef0178e13b3f98e8d216a1.tar.bz2
Help: add_executable: Add TOC
Diffstat (limited to 'Help')
-rw-r--r--Help/command/add_executable.rst13
1 files changed, 11 insertions, 2 deletions
diff --git a/Help/command/add_executable.rst b/Help/command/add_executable.rst
index 0a7d7e1..d8f1d54 100644
--- a/Help/command/add_executable.rst
+++ b/Help/command/add_executable.rst
@@ -1,8 +1,15 @@
add_executable
--------------
+.. only:: html
+
+ .. contents::
+
Add an executable to the project using the specified source files.
+Normal Executables
+^^^^^^^^^^^^^^^^^^
+
.. code-block:: cmake
add_executable(<name> [WIN32] [MACOSX_BUNDLE]
@@ -45,7 +52,8 @@ See also :prop_sf:`HEADER_FILE_ONLY` on what to do if some sources are
pre-processed, and you want to have the original sources reachable from
within IDE.
---------------------------------------------------------------------------
+Imported Executables
+^^^^^^^^^^^^^^^^^^^^
.. code-block:: cmake
@@ -65,7 +73,8 @@ whose names begin in ``IMPORTED_``. The most important such property is
the main executable file on disk. See documentation of the ``IMPORTED_*``
properties for more information.
---------------------------------------------------------------------------
+Alias Executables
+^^^^^^^^^^^^^^^^^
.. code-block:: cmake