Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bernedom committed Aug 3, 2024
1 parent 6fb215a commit b32e37b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion chapter10/ex03_simple_qt_app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.:
Expand All @@ -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%;<buildFolder>/_deps/qt6-build/bin;<buildFolder>/_deps/qt6-build/qtbase/bin
```

0 comments on commit b32e37b

Please sign in to comment.