diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b3d2bb85..3b214994 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -46,7 +46,9 @@ jobs: vcpkgGitCommitId: 8eb57355a4ffb410a2e94c07b4dca2dffbee8e50 vcpkgDirectory: c:/vcpkg # folder must reside in c:\ otherwise qt wont install due to long path errors + - name: Run CMake and run vcpkg to build packages uses: lukka/run-cmake@v10 with: + configurePreset: "windows-default" buildPresetAdditionalArgs: "['--config Release']" diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 00000000..019632d5 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,19 @@ +{ + "version": 6, + "configurePresets": [ + { + "name": "windows-default", + "displayName": "Windows x64 Release", + "generator": "Ninja", + "binaryDir": "${sourceDir}/out/build/${presetName}", + "architecture": { + "value": "x64", + "strategy": "external" + }, + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}" + } + } + ] +} \ No newline at end of file