Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Deploying qwindows.dll with CMake

Deploying qwindows.dll with CMake

Scheduled Pinned Locked Moved Unsolved Qt 6
1 Posts 1 Posters 376 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Akapaka
    wrote on last edited by
    #1

    I found out that in Qt5 there was a possibility to deploy plugin in the following way:

    add_custom_command(TARGET "app" POST_BUILD
                       COMMAND ${CMAKE_COMMAND} -E copy_if_different
                       $<TARGET_FILE:Qt5::QWindowsIntegrationPlugin> $<TARGET_FILE_DIR:app>)
    

    It doesn't work with Qt6 though:

    CMake Error at CMakeLists.txt:17 (add_custom_command):
      Error evaluating generator expression:
    
        $<TARGET_FILE:Qt6::QWindowsIntegrationPlugin>
    
      No target "Qt6::QWindowsIntegrationPlugin"
    

    Is there some new way to handle this?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved