Deploying qwindows.dll with CMake
Unsolved
Qt 6
-
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?