Browse Source

Fix build threads definition in README

- Add proper options definition for build tools
- Add ctest run instruction
Alexey Edelev 5 years ago
parent
commit
54e9901bba
1 changed files with 7 additions and 2 deletions
  1. 7 2
      README.md

+ 7 - 2
README.md

@@ -21,7 +21,7 @@ git submodule update --init --recursive
 mkdir build
 cd build
 cmake ..
-cmake --build . -j <N> [--config <RELEASE|DEBUG>]
+cmake --build . [--config <RELEASE|DEBUG>] -- -j<N>
 ```
 
 ## Windows Build
@@ -53,10 +53,15 @@ cd <directory with qtprotobuf project>
 mkdir build
 cd build
 cmake ..
-cmake --build . -j <N> [--config <RELEASE|DEBUG>]
+cmake --build . [--config <RELEASE|DEBUG>] -- /m:<N>
 ```
 
 ## Usage
 ```bash
 protoc --plugin=protoc-gen-qtprotobuf=<path/to/bin>/qtprotobuf --qtprotobuf_out=<output_dir> <protofile>.proto [--qtprotobuf_opt=out=<output_dir>]
 ```
+## Running tests
+```bash
+cd <build directory>
+ctest
+```