Update CMakeLists.txt

This commit is contained in:
Anders Jenbo 2025-07-05 21:20:41 +02:00 committed by GitHub
parent de5ded004d
commit 55605cb0b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -680,6 +680,7 @@ install(TARGETS isle ${install_extra_targets}
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
) )
if (ISLE_BUILD_CONFIG) if (ISLE_BUILD_CONFIG)
if(WIN32)
find_program(WINDEPLOYQT_EXECUTABLE windeployqt) find_program(WINDEPLOYQT_EXECUTABLE windeployqt)
if(WINDEPLOYQT_EXECUTABLE) if(WINDEPLOYQT_EXECUTABLE)
install(CODE "message(STATUS \"Running windeployqt with minimal dependencies\") install(CODE "message(STATUS \"Running windeployqt with minimal dependencies\")
@ -697,6 +698,7 @@ if (ISLE_BUILD_CONFIG)
else() else()
message(STATUS "windeployqt not found: Qt binaries will not be installed") message(STATUS "windeployqt not found: Qt binaries will not be installed")
endif() endif()
endif()
install(TARGETS isle-config install(TARGETS isle-config
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
) )