Fix attachedstyleproperties example installation

Make sure that libMyStyle.so, libMyStyleplugin.so, and the qmldir are
installed.

Fixes: QTBUG-114482
Change-Id: I19b182f9957cc138171f0cb69eb25a42b7bf9b37
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 842bb590be)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Mitch Curtis 2023-06-14 06:30:33 +08:00 committed by Qt Cherry-pick Bot
parent 44fc775d59
commit d4a8ead254
1 changed files with 6 additions and 3 deletions

View File

@ -37,9 +37,12 @@ target_link_libraries(MyStyle PRIVATE
install(TARGETS MyStyle
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}/MyStyle"
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qmldir
DESTINATION "${INSTALL_EXAMPLEDIR}"
install(TARGETS MyStyleplugin
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}/MyStyle"
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qmldir
DESTINATION "${INSTALL_EXAMPLEDIR}/MyStyle"
)