diff --git a/Help/index.rst b/Help/index.rst index dea1463a6..0d3382583 100644 --- a/Help/index.rst +++ b/Help/index.rst @@ -40,6 +40,7 @@ Other Manuals /manual/cmake-developer.7 /manual/cmake-generator-expressions.7 + /manual/cmake-language.7 .. only:: html diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst index 5d20c5432..5857acfb5 100644 --- a/Help/manual/cmake-developer.7.rst +++ b/Help/manual/cmake-developer.7.rst @@ -255,7 +255,8 @@ containing just the line:: The ``cmake-module`` directive will scan the module file to extract reStructuredText markup from comment blocks that start in ``.rst:``. -Add to the top of ``Modules/.cmake`` a #-comment of the form: +Add to the top of ``Modules/.cmake`` a +:ref:`Line Comment` block of the form: .. code-block:: cmake @@ -265,7 +266,7 @@ Add to the top of ``Modules/.cmake`` a #-comment of the form: # # -or a bracket-comment of the form: +or a :ref:`Bracket Comment` of the form: .. code-block:: cmake diff --git a/Help/manual/cmake-language.7.rst b/Help/manual/cmake-language.7.rst new file mode 100644 index 000000000..728589712 --- /dev/null +++ b/Help/manual/cmake-language.7.rst @@ -0,0 +1,470 @@ +.. cmake-manual-description: CMake Language Reference + +cmake-language(7) +***************** + +.. only:: html or latex + + .. contents:: + +Organization +============ + +CMake input files are written in the "CMake Language" in source files +named ``CMakeLists.txt`` or ending in a ``.cmake`` file name extension. + +CMake Language source files in a project are organized into: + +* `Directories`_ (``CMakeLists.txt``), +* `Scripts`_ (``