Skip to content

Commit 73c942c

Browse files
committed
Links
1 parent 5a2f501 commit 73c942c

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

index.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ <h2><a id="project-structure"></a> <a href="#contents">≡</a> <a href="#project
125125
<li>any number of executable tests in the <code>testing</code> directory, and</li>
126126
<li>an executable program in the <code>program</code> directory.</li>
127127
</ul>
128-
<p>Try the <code>cppsm init-hello</code> script. It generates a simple example project that
129-
has essentially the following structure:</p>
128+
<p>Try the <a href="#cppsm-init-hello"><code>cppsm init-hello</code></a> script. It generates a simple
129+
example project that has essentially the following structure:</p>
130130
<pre><code>CMakeLists.txt
131131
equipment/
132132
testing.cpp/
@@ -292,7 +292,7 @@ <h4><a id="cppsm-update"></a> <a href="#contents">≡</a> <a href="#cppsm-update
292292
versions in the branch.</p>
293293
<h4><a id="cppsm-upgrade"></a> <a href="#contents"></a> <a href="#cppsm-upgrade"><code>cppsm upgrade</code></a></h4>
294294
<p>Upgrades all cppsm managed submodules to latest remote versions and runs
295-
<code>cppsm init</code> to update configuration files.</p>
295+
<a href="#cppsm-init"><code>cppsm init</code></a> to update configuration files.</p>
296296
<h2><a id="cmake"></a> <a href="#contents"></a> <a href="#cmake">CMake</a></h2>
297297
<p>CMake boilerplate is provided for simple libraries, tests, and executables.</p>
298298
<h3><a id="conventional-cmake"></a> <a href="#contents"></a> <a href="#conventional-cmake"><code>conventional.cmake</code></a></h3>
@@ -301,11 +301,14 @@ <h4><a id="add_conventional_executable"></a> <a href="#contents">≡</a> <a href
301301
has implementation files matching the pattern <code>program/*.{cpp,hpp}</code>.</p>
302302
<pre><code>CMakeLists.txt
303303
program/
304-
*.{cpp,hpp}</code></pre><p>Add dependencies using <code>target_link_libraries</code> separately.</p>
304+
*.{cpp,hpp}</code></pre><p>Add dependencies using
305+
<a target="_blank" href="https://cmake.org/cmake/help/latest/command/target_link_libraries.html"><code>target_link_libraries</code> <i class="fas fa-xs fa-external-link-alt"></i></a>
306+
separately.</p>
305307
<h4><a id="add_conventional_executable_tests"></a> <a href="#contents"></a> <a href="#add_conventional_executable_tests"><code>add_conventional_executable_tests(...)</code></a></h4>
306308
<p>Adds an executable test target per file matching pattern <code>testing/*.cpp</code>. The
307309
arguments given to <code>add_conventional_executable_tests</code> are passed to
308-
<code>target_link_libraries</code> for each added test target.</p>
310+
<a target="_blank" href="https://cmake.org/cmake/help/latest/command/target_link_libraries.html"><code>target_link_libraries</code> <i class="fas fa-xs fa-external-link-alt"></i></a>
311+
for each added test target.</p>
309312
<pre><code>CMakeLists.txt
310313
testing/
311314
*.cpp</code></pre><h4><a id="add_conventional_library"></a> <a href="#contents"></a> <a href="#add_conventional_library"><code>add_conventional_library(name)</code></a></h4>

index.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ A single _target directory_ may simultaneously contain
9797
- any number of executable tests in the `testing` directory, and
9898
- an executable program in the `program` directory.
9999

100-
Try the `cppsm init-hello` script. It generates a simple example project that
101-
has essentially the following structure:
100+
Try the [`cppsm init-hello`](#cppsm-init-hello) script. It generates a simple
101+
example project that has essentially the following structure:
102102

103103
CMakeLists.txt
104104
equipment/
@@ -351,7 +351,7 @@ versions in the branch.
351351
#### <a id="cppsm-upgrade"></a> [](#contents) [`cppsm upgrade`](#cppsm-upgrade)
352352

353353
Upgrades all cppsm managed submodules to latest remote versions and runs
354-
`cppsm init` to update configuration files.
354+
[`cppsm init`](#cppsm-init) to update configuration files.
355355

356356
## <a id="cmake"></a> [](#contents) [CMake](#cmake)
357357

@@ -368,13 +368,16 @@ has implementation files matching the pattern `program/*.{cpp,hpp}`.
368368
program/
369369
*.{cpp,hpp}
370370

371-
Add dependencies using `target_link_libraries` separately.
371+
Add dependencies using
372+
[`target_link_libraries`](https://cmake.org/cmake/help/latest/command/target_link_libraries.html)
373+
separately.
372374

373375
#### <a id="add_conventional_executable_tests"></a> [](#contents) [`add_conventional_executable_tests(...)`](#add_conventional_executable_tests)
374376

375377
Adds an executable test target per file matching pattern `testing/*.cpp`. The
376378
arguments given to `add_conventional_executable_tests` are passed to
377-
`target_link_libraries` for each added test target.
379+
[`target_link_libraries`](https://cmake.org/cmake/help/latest/command/target_link_libraries.html)
380+
for each added test target.
378381

379382
CMakeLists.txt
380383
testing/

0 commit comments

Comments
 (0)