From 140fc22ab22c770b44228ec6b38c745fc610269d Mon Sep 17 00:00:00 2001 From: LesnyRumcajs Date: Tue, 6 Aug 2019 12:36:36 +0200 Subject: Corrected the installation procedure (#849) * Corrected the installation procedure Now it can be put into a script. * Updated the file tree Necessary after installation instruction change --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0efe48f..f576973 100644 --- a/README.md +++ b/README.md @@ -65,12 +65,15 @@ versions of build tools._ $ git clone https://github.com/google/benchmark.git # Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory. $ git clone https://github.com/google/googletest.git benchmark/googletest +# Go to the library root directory +$ cd benchmark # Make a build directory to place the build output. $ mkdir build && cd build # Generate a Makefile with cmake. # Use cmake -G to generate a different file type. $ cmake ../ # Build the library. +# Use make -j to speed up the build process, e.g. make -j8 . $ make ``` This builds the `benchmark` and `benchmark_main` libraries and tests. @@ -78,12 +81,12 @@ On a unix system, the build directory should now look something like this: ``` /benchmark -/build - /src - /libbenchmark.a - /libbenchmark_main.a - /test - ... + /build + /src + /libbenchmark.a + /libbenchmark_main.a + /test + ... ``` Next, you can run the tests to check the build. -- cgit v1.2.3