We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6d0f8f commit c424a48Copy full SHA for c424a48
1 file changed
README.md
@@ -28,6 +28,29 @@ You also need to turn on `c++17` support.
28
29
See [example](example) folder for an example CMake project.
30
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
40
+ mkdir -p build
41
+ cd build
42
43
+3. Generate the CMake configuration:
44
45
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
46
47
+4. Build the project:
48
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
54
### Example Code
55
56
```c++
0 commit comments