Skip to content

Commit c424a48

Browse files
author
PARTH SHAH
committed
Update Readme
1 parent c6d0f8f commit c424a48

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,29 @@ You also need to turn on `c++17` support.
2828

2929
See [example](example) folder for an example CMake project.
3030

31+
### Build it as shared library
32+
You can also build this library as a standalone shared library.
33+
34+
1. Initialize all submodules:
35+
```sh
36+
git submodule update --init --recursive
37+
```
38+
2. Create and enter the build directory:
39+
```sh
40+
mkdir -p build
41+
cd build
42+
```
43+
3. Generate the CMake configuration:
44+
```sh
45+
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
46+
```
47+
4. Build the project:
48+
```sh
49+
cmake --build . --config Release
50+
```
51+
52+
When using the shared library, you can access the exported methods defined in `src/static_exports.cc`.
53+
3154
### Example Code
3255

3356
```c++

0 commit comments

Comments
 (0)