mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Merge topic 'tutorial-typos'
abee191e93Help/tutorial: reword Installation Commands intro15bd933fc4Help/tutorial: fix minor typos Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com> Acked-by: Betsy McPhail <betsy.mcphail@kitware.com> Merge-request: !12199
This commit is contained in:
@@ -596,7 +596,7 @@ Continue to edit files from ``Step1``. Start on ``TODO 7`` and complete through
|
||||
``TODO 9``. In this exercise, we need to add the ``MathFunctions`` target to
|
||||
the ``Tutorial`` target's linked libraries using :command:`target_link_libraries`.
|
||||
|
||||
After modifying the CML, update ``tutorial.cxx`` to use the
|
||||
After modifying the CML, update ``Tutorial.cxx`` to use the
|
||||
``mathfunctions::sqrt()`` function instead of ``std::sqrt``.
|
||||
|
||||
Build and Run
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
Step 9: Installation Commands and Concepts
|
||||
==========================================
|
||||
|
||||
Projects need to do more than build and test their code, they need to make it
|
||||
Projects need to do more than build and test their code. They need to make it
|
||||
available to consumers. The layout of files in the build tree is unsuitable
|
||||
for consumption by other projects, binaries are in unexpected places, header
|
||||
for consumption by other projects. Binaries are in unexpected places, header
|
||||
files are located far away in the source tree, and there's no clear way
|
||||
to discover what targets are provided or how to use them.
|
||||
|
||||
This translation, moving artifacts from the source and build trees into a final
|
||||
layout suitable for consumption, is known as installation. CMake supports a
|
||||
complete installation workflow as part of the project description, controlling
|
||||
both the layout of artifacts in the install tree, and reconstructing targets
|
||||
for other CMake projects which want to consume the libraries provided by the
|
||||
install tree.
|
||||
Moving artifacts from the source and build trees into a final layout suitable
|
||||
for consumption is known as installation. CMake supports a complete
|
||||
installation workflow as part of the project description, controlling both the
|
||||
layout of artifacts in the install tree and reconstructing targets for other
|
||||
CMake projects which want to consume the libraries provided by the install
|
||||
tree.
|
||||
|
||||
Background
|
||||
^^^^^^^^^^
|
||||
|
||||
@@ -8,7 +8,7 @@ target_sources(TestMathFunctions
|
||||
# TODO1: Find the SimpleTest package. This should be a required dependency when
|
||||
# building tests.
|
||||
|
||||
# TODO2: Add the SimpleTest::SimpleTest target to Test MathFunctions
|
||||
# TODO2: Add the SimpleTest::SimpleTest target to TestMathFunctions
|
||||
|
||||
target_link_libraries(TestMathFunctions
|
||||
PRIVATE
|
||||
|
||||
Reference in New Issue
Block a user