Browse Source

Add instruction to build project in system with
custom Qt installation location.

Viktor Kopp 6 years ago
parent
commit
ff285fe8a8
1 changed files with 5 additions and 5 deletions
  1. 5 5
      README.md

+ 5 - 5
README.md

@@ -2,15 +2,15 @@
 
 Protobuf plugin to generate Qt classes
 
-# Linux Build
+## Linux Build
 ```bash
 mkdir build
 cd build
-cmake ..
+cmake [-DCMAKE_PREFIX_PATH=<PATH_TO_Qt5Config.cmake_OR_qt5-config.cmake>] ..
 make -j<N>
 ```
 
-# Windows Build
+## Windows Build
 ```bash
 mkdir build
 cd build
@@ -18,7 +18,7 @@ cmake ..
 cmake --build . --target qtprotobuf --config RELEASE
 ```
 
-# Usage
+## Usage
 ```bash
 protoc --plugin=protoc-gen-qtprotobuf=<path/to/bin>/qtprotobuf --qtprotobuf_out=<output_dir> <protofile>.proto
-```
+```