diff options
author | LesnyRumcajs <LesnyRumcajs@users.noreply.github.com> | 2019-08-06 12:36:36 +0200 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-08-06 13:36:36 +0300 |
commit | 140fc22ab22c770b44228ec6b38c745fc610269d (patch) | |
tree | 780da0fdc63ebd8ab841ee1844b677806ba3f107 | |
parent | 140db8a22901f666577b7516febf184e9764f4e2 (diff) | |
download | google-benchmark-140fc22ab22c770b44228ec6b38c745fc610269d.tar.gz |
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
-rw-r--r-- | README.md | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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 <generator> to generate a different file type. $ cmake ../ # Build the library. +# Use make -j<number_of_parallel_jobs> 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. |