build: generate vcpkg.json on windows

do not allow vcpkg.json to be added to the repo
provide a new option VCPKG_QT (default is OFF), to build Qt via vcpkg
This commit is contained in:
sithlord48
2025-07-17 11:45:09 -04:00
committed by Chris Rizzitello
parent 2c55f4fe06
commit 28957a3fa8
8 changed files with 44 additions and 37 deletions

View File

@ -26,7 +26,7 @@ macro(configure_libs)
# Define the location of Qt deployment tool
if(WIN32)
if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT VCPKG_INSTALL_DIR STREQUAL "")
if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND VCPKG_QT)
find_program(DEPLOYQT windeployqt.debug.bat)
else()
find_program(DEPLOYQT windeployqt)

12
cmake/vcpkg.json.in Normal file
View File

@ -0,0 +1,12 @@
{
"$comment": "Generated file do not hand edit",
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "deskflow",
"version": "@DESKFLOW_VERSION_MAJOR@.@DESKFLOW_VERSION_MINOR@.@DESKFLOW_VERSION_PATCH@.@DESKFLOW_VERSION_TWEAK@",
"builtin-baseline": "d5ec528843d29e3a52d745a64b469f810b2cedbf",
"dependencies": [
"gtest",
"openssl"
@QT_LIBS@
]
}