mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: update files of project
This commit is contained in:
parent
ea52ed76a9
commit
633d7dfffd
@ -11,6 +11,25 @@ function(sak_auto_execute_windeployqt target)
|
||||
COMMENT "Running windeployqt..."
|
||||
VERBATIM)
|
||||
endif()
|
||||
if(MSVC AND ${MSVC_VERSION} GREATER_EQUAL 1929)
|
||||
cmake_path(GET CMAKE_CXX_COMPILER PARENT_PATH COMPILER_PATH)
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND MSVC)
|
||||
add_custom_command(
|
||||
TARGET ${target}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${COMPILER_PATH}/VCRUNTIME140.dll"
|
||||
$<TARGET_FILE_DIR:${target}>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${COMPILER_PATH}/VCRUNTIME140_1.dll"
|
||||
$<TARGET_FILE_DIR:${target}>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${COMPILER_PATH}/MSVCP140.dll"
|
||||
$<TARGET_FILE_DIR:${target}>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${COMPILER_PATH}/MSVCP140_1.dll"
|
||||
$<TARGET_FILE_DIR:${target}>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${COMPILER_PATH}/MSVCP140_2.dll"
|
||||
$<TARGET_FILE_DIR:${target}>
|
||||
VERBATIM)
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(sak_auto_execute_macdeployqt target)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user