Update CMakeLists.txt

This commit is contained in:
BagelSketches 2025-07-04 11:10:15 +10:00 committed by GitHub
parent 2653f0e2ac
commit ca951b0701
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -644,7 +644,6 @@ install(TARGETS isle ${install_extra_targets}
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
) )
if (ISLE_BUILD_CONFIG) if (ISLE_BUILD_CONFIG)
file(GLOB_RECURSE QT_LIBRARIES "${CMAKE_INSTALL_BINDIR}/QTLibs/*")
find_program(WINDEPLOYQT_EXECUTABLE windeployqt) find_program(WINDEPLOYQT_EXECUTABLE windeployqt)
if(WINDEPLOYQT_EXECUTABLE) if(WINDEPLOYQT_EXECUTABLE)
add_custom_command(TARGET isle-config POST_BUILD add_custom_command(TARGET isle-config POST_BUILD
@ -659,6 +658,7 @@ if (ISLE_BUILD_CONFIG)
"--no-quick-import" "--no-quick-import"
COMMENT "Running windeployqt with minimal dependencies" COMMENT "Running windeployqt with minimal dependencies"
) )
file(GLOB_RECURSE QT_LIBRARIES "${CMAKE_INSTALL_BINDIR}/QTLibs/*")
install(FILES "${QT_LIBRARIES}" DESTINATION "${CMAKE_INSTALL_BINDIR}") install(FILES "${QT_LIBRARIES}" DESTINATION "${CMAKE_INSTALL_BINDIR}")
else() else()
message(WARNING "windeployqt not found.") message(WARNING "windeployqt not found.")