添加打包时image相关插件安装。
This commit is contained in:
@@ -76,6 +76,11 @@ set(QT_DEP_STYLES
|
||||
"${CMAKE_PREFIX_PATH}/plugins/styles/qmodernwindowsstyle.dll"
|
||||
"${CMAKE_PREFIX_PATH}/plugins/styles/qwindowsvistastyle.dll"
|
||||
)
|
||||
set(QT_IMG_DEP
|
||||
"${CMAKE_PREFIX_PATH}/plugins/imageformats/qgif.dll"
|
||||
"${CMAKE_PREFIX_PATH}/plugins/imageformats/qico.dll"
|
||||
"${CMAKE_PREFIX_PATH}/plugins/imageformats/qjpeg.dll"
|
||||
)
|
||||
endif()
|
||||
|
||||
set(CMAKE_DEBUG_POSTFIX "d")
|
||||
@@ -109,7 +114,7 @@ function(safe_install_files files_list destination)
|
||||
if(EXISTS ${file})
|
||||
list(APPEND existing_files ${file})
|
||||
else()
|
||||
message(STATUS "跳过: ${file}")
|
||||
message(STATUS "Jump: ${file}")
|
||||
endif()
|
||||
endforeach()
|
||||
if(existing_files)
|
||||
@@ -129,6 +134,7 @@ if (WIN32)
|
||||
install(FILES ${QT_DEP_FILES} DESTINATION bin)
|
||||
safe_install_files("${QT_DEP_PLATFORM}" "bin/platforms")
|
||||
safe_install_files("${QT_DEP_STYLES}" "bin/styles")
|
||||
safe_install_files("${QT_IMG_DEP}" "bin/imageformats")
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
|
||||
Reference in New Issue
Block a user