Skip to content

Commit

Permalink
add shell blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
null committed Oct 9, 2023
1 parent 6c48e7c commit 74d0ea9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Instead of [a static library], now we are using the `SHARED` argument to build a

<<< ./mylib.c

```sh
cmake -B build
cmake --build build
ls build
```

<iframe frameborder="0" style="width: 100%; height: 500px" src="https://replit.com/@jcbhmr/cmakebyexampledev-shared?embed=1"></iframe>

[a static library]: /static/
6 changes: 6 additions & 0 deletions static/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ library] example for the `SHARED` counterpart.

<<< ./mylib.c

```sh
cmake -B build
cmake --build build
ls build
```

<iframe frameborder="0" style="width: 100%; height: 500px" src="https://replit.com/@jcbhmr/cmakebyexampledev-static?embed=1"></iframe>

[build a shared library]: /shared/

0 comments on commit 74d0ea9

Please sign in to comment.