diff options
author | Markus Ferrell <markus.ferrell@kitware.com> | 2023-02-10 21:07:06 (GMT) |
---|---|---|
committer | Markus Ferrell <markus.ferrell@kitware.com> | 2023-02-23 14:42:10 (GMT) |
commit | 8ddf32196c6bca9c3a80414222327eebd5d51835 (patch) | |
tree | 40ad09ab3e93b4d1bbc642fc921f1ddb3737853b /Help/guide/tutorial/Adding System Introspection.rst | |
parent | 78299083d24fc09c777292effb4fdb9d9ed1d7d3 (diff) | |
download | CMake-8ddf32196c6bca9c3a80414222327eebd5d51835.zip CMake-8ddf32196c6bca9c3a80414222327eebd5d51835.tar.gz CMake-8ddf32196c6bca9c3a80414222327eebd5d51835.tar.bz2 |
Tutorial: Refactor MathFunctions code
Propagate the refactor in Step 10 MathFunctions through all of the
steps. Use MathFunctions/MathFunctions.cxx instead of Tutorial.cxx
to determine which sqrt library is called. Adds .h files which
correspond to their .cxx files by name.
Diffstat (limited to 'Help/guide/tutorial/Adding System Introspection.rst')
-rw-r--r-- | Help/guide/tutorial/Adding System Introspection.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Help/guide/tutorial/Adding System Introspection.rst b/Help/guide/tutorial/Adding System Introspection.rst index b69abd2..b314773 100644 --- a/Help/guide/tutorial/Adding System Introspection.rst +++ b/Help/guide/tutorial/Adding System Introspection.rst @@ -119,7 +119,7 @@ our source code can tell what resources are available. If both ``log`` and :name: MathFunctions/CMakeLists.txt-target_compile_definitions :language: cmake :start-after: # add compile definitions - :end-before: # install libs + :end-before: # state .. raw:: html @@ -136,7 +136,8 @@ Since we may be using ``log`` and ``exp``, we need to modify :caption: TODO 4: MathFunctions/mysqrt.cxx :name: MathFunctions/mysqrt.cxx-include-cmath :language: c++ - :end-before: #include <iostream> + :start-after: #include "mysqrt.h" + :end-before: include <iostream> .. raw:: html |