From 2b3d6f6ae41c409fb88353c3a545969bbad890f6 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Fri, 28 Dec 2018 13:18:00 -0500 Subject: [PATCH] Documenting cmake. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b0f7a25c..b57d0371 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,19 @@ While in the project repository, do the following: mkdir build cd build 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 ```