Skip to content

Commit

Permalink
update code sample for visibility levels
Browse files Browse the repository at this point in the history
  • Loading branch information
code4yonglei committed Sep 27, 2024
1 parent 6b2c03a commit 4388be2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions content/targets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,21 @@ Why it is robust to use targets and properties than using variables? Given a tar
In this demo, we split the source code into 3 libraries and all files are available in the ``content/code/04_visibility-levels/`` folder.


.. code-block:: text
.
├── CMakeLists.txt
├── greeting
│   ├── greeting.cpp
│   └── greeting.hpp
├── hello_world
│   ├── hello_world.cpp
│   └── hello_world.hpp
├── main.cpp
└── world
├── world.cpp

Check failure on line 115 in content/targets.rst

View workflow job for this annotation

GitHub Actions / Build

Unexpected indentation.
└── world.hpp


In this source code, the main function links to greeting which links to hello_world which links to world.

Expand Down

0 comments on commit 4388be2

Please sign in to comment.