From f9da6db3b62b5af20986ea9d5ac9592c91e26ca0 Mon Sep 17 00:00:00 2001 From: Dominik Berner Date: Sat, 3 Aug 2024 13:39:23 +0200 Subject: [PATCH] Add readme --- .github/workflows/coverage.yml | 2 +- .github/workflows/cross-compiling.yml | 2 +- .github/workflows/sanitizers.yml | 2 +- .github/workflows/superbuild.yml | 4 ++-- chapter10/ex03_simple_qt_app/README.md | 16 ++++++++++++++++ 5 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 chapter10/ex03_simple_qt_app/README.md diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 278f265..cbe2ed6 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -7,7 +7,7 @@ on: types: [published] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref }}-coverage cancel-in-progress: true diff --git a/.github/workflows/cross-compiling.yml b/.github/workflows/cross-compiling.yml index 1de5db5..a511e86 100644 --- a/.github/workflows/cross-compiling.yml +++ b/.github/workflows/cross-compiling.yml @@ -7,7 +7,7 @@ on: types: [published] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref }}-cross-compilation cancel-in-progress: true diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml index 6ed6940..4bf33d2 100644 --- a/.github/workflows/sanitizers.yml +++ b/.github/workflows/sanitizers.yml @@ -7,7 +7,7 @@ on: types: [published] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref }}-sanitizers cancel-in-progress: true diff --git a/.github/workflows/superbuild.yml b/.github/workflows/superbuild.yml index 9e51c3c..cddd604 100644 --- a/.github/workflows/superbuild.yml +++ b/.github/workflows/superbuild.yml @@ -1,4 +1,4 @@ -name: Sanitizers +name: Superbuild example on: push: @@ -7,7 +7,7 @@ on: types: [published] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref }}-superbuild cancel-in-progress: true diff --git a/chapter10/ex03_simple_qt_app/README.md b/chapter10/ex03_simple_qt_app/README.md new file mode 100644 index 0000000..505579a --- /dev/null +++ b/chapter10/ex03_simple_qt_app/README.md @@ -0,0 +1,16 @@ +# Superbuild example with Qt6 + +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 + +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.: + +```bash +C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat x64 +cmake -S . -B build -G Ninja -DCH10_EX03_SUPERBUILD=ON +cmake --build ./build +``` + +