Skip to content
Discussion options

You must be logged in to vote

Thanks for your help, Serge Yudin (@yudin-s) .

I search the whole vcpkg_installed directory and find 3 windeployqt.exe respecitvely in vcpkg_installed\x64-windows\tools\qt5-tools\bin, vcpkg_installed\x64-windows\tools\qt5\bin and vcpkg_installed\x64-windows\tools\qt5\debug\bin

The final solution is this:

if(WIN32)
    if(CMAKE_BUILD_TYPE STREQUAL "Debug")
        set(QT5TOOL_PATH ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/tools/qt5/debug/bin/)
    else()
        set(QT5TOOL_PATH ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/tools/qt5/bin/)
    endif()

    find_program(WINDEPLOYQT windeployqt 
        NO_DEFAULT_PATH
        PATHS ${QT5TOOL_PATH}
        REQUIRED
    )
    add_custom…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Flying-Magnus
Comment options

@yudin-s
Comment options

@Flying-Magnus
Comment options

Answer selected by Flying-Magnus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants