Skip to content

Commit

Permalink
correct tree structure in targets-new-visibility-levels
Browse files Browse the repository at this point in the history
  • Loading branch information
code4yonglei committed Sep 10, 2024
1 parent 522d856 commit a017bf8
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions content/targets-new-visibility-levels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,21 @@ Visibility levels ``PRIVATE``, ``PUBLIC``, or ``INTERFACE`` are very powerful an

In this demo, we split the source code into 3 libraries and all files are available in the ``content/code/xx_visibility-levels/`` folder.

.
├── CMakeLists.txt
├── greeting
│   ├── greeting.cpp
│   └── greeting.hpp
├── hello_world
│   ├── hello_world.cpp
│   └── hello_world.hpp
├── main.cpp
└── world
├── world.cpp
└── world.hpp

.
├── CMakeLists.txt
├── greeting
│   ├── greeting.cpp
│   └── greeting.hpp
├── hello_world
│   ├── hello_world.cpp
│   └── hello_world.hpp
├── main.cpp
└── world
├── world.cpp
└── world.hpp
.. code-block:: bash
.
├── CMakeLists.txt
├── greeting
│   ├── greeting.cpp
│   └── greeting.hpp
├── hello_world
│   ├── hello_world.cpp
│   └── hello_world.hpp
├── main.cpp
└── world
├── world.cpp
└── 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 a017bf8

Please sign in to comment.