Преглед изворни кода

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

Viktor Kopp пре 6 година
родитељ
комит
ff285fe8a8
1 измењених фајлова са 5 додато и 5 уклоњено
  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
-```
+```