Documenting cmake.
This commit is contained in:
parent
386bebb33b
commit
2b3d6f6ae4
13
README.md
13
README.md
|
@ -120,6 +120,19 @@ While in the project repository, do the following:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
|
make
|
||||||
|
make test
|
||||||
|
```
|
||||||
|
|
||||||
|
CMake will build a library. By default, it builds a shared library (e.g., libsimdjson.so on Linux).
|
||||||
|
|
||||||
|
You can build a static library:
|
||||||
|
|
||||||
|
```
|
||||||
|
mkdir buildstatic
|
||||||
|
cd buildstatic
|
||||||
|
cmake -DSIMDJSON_BUILD_STATIC=ON ..
|
||||||
|
make
|
||||||
make test
|
make test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue