diff --git a/chapter10/ex03_simple_qt_app/README.md b/chapter10/ex03_simple_qt_app/README.md index e24b5be..5f2449b 100644 --- a/chapter10/ex03_simple_qt_app/README.md +++ b/chapter10/ex03_simple_qt_app/README.md @@ -2,7 +2,7 @@ This example demonstrates how to use CMake to build a superbuild project that includes a Qt6 application. Since Qt6 is not trivial to build, this example works best on linux or by using the supplied docker container. -## Building for Windows +## Building on Windows As Qt6 only supports Ninja for building on Windows, you will need to install Ninja and use it as the generator for CMake. In order to build the project with Ninja and the MSVC compiler, you will need to run the `vcvarsall.bat` script to set up the environment for the MSVC compiler.: @@ -14,3 +14,11 @@ cmake --build ./build ``` (Be sure to replace the path to `vcvarsall.bat` with the correct path for your system.) + +### Running the example on Windows + +If the example is built on Windows, you will need to set the `PATH` environment variable to include the Qt6 DLLs. You can do this by running the following command: + +```powershell +set PATH=%PATH%;/_deps/qt6-build/bin;/_deps/qt6-build/qtbase/bin +```