File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,29 @@ You also need to turn on `c++17` support.
2828
2929See [ 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++
You can’t perform that action at this time.
0 commit comments