Kaynağa Gözat

Fix build threads definition in README

- Add proper options definition for build tools
- Add ctest run instruction
Alexey Edelev 5 yıl önce
ebeveyn
işleme
54e9901bba
1 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  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
+```