@@ -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
131131equipment/
132132 testing.cpp/
@@ -292,7 +292,7 @@ <h4><a id="cppsm-update"></a> <a href="#contents">≡</a> <a href="#cppsm-update
292292versions 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
301301has implementation files matching the pattern < code > program/*.{cpp,hpp}</ code > .</ p >
302302< pre > < code > CMakeLists.txt
303303program/
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
307309arguments 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
310313testing/
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 >
0 commit comments