@@ -0,0 +1,36 | |||||
|
1 | STRING(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TO_LOWER) | |||
|
2 | SET(WINDEPLOYQT_ARGS --${CMAKE_BUILD_TYPE_TO_LOWER} --list mapping --no-system-d3d-compiler --compiler-runtime --dry-run) | |||
|
3 | ||||
|
4 | #FOREACH(qtModule @_qt5_modules@) | |||
|
5 | # STRING(TOLOWER ${qtModule} qtLowerModule) | |||
|
6 | # SET(WINDEPLOYQT_ARGS ${WINDEPLOYQT_ARGS} -${qtLowerModule}) | |||
|
7 | #ENDFOREACH() | |||
|
8 | ||||
|
9 | EXECUTE_PROCESS( | |||
|
10 | COMMAND windeployqt ${WINDEPLOYQT_ARGS} ${SCIQLOP_EXE_LOCATION} | |||
|
11 | OUTPUT_VARIABLE QT_FILES | |||
|
12 | ) | |||
|
13 | ||||
|
14 | IF( QT_FILES ) | |||
|
15 | ||||
|
16 | STRING(REPLACE "\n" ";" QT_FILES ${QT_FILES}) | |||
|
17 | LIST(APPEND QT_FILES_LIST ${QT_FILES}) | |||
|
18 | FOREACH(QtFile ${QT_FILES_LIST}) | |||
|
19 | STRING(REPLACE "\"" "" QtFile ${QtFile}) | |||
|
20 | STRING(REPLACE "\\" "/" QtFile ${QtFile}) | |||
|
21 | STRING(REGEX MATCH "^(.*) " QtFileSource ${QtFile}) | |||
|
22 | STRING(REGEX MATCH " (.*)$" QtFileTarget ${QtFile}) | |||
|
23 | ||||
|
24 | STRING(STRIP ${QtFileSource} QtFileSource) | |||
|
25 | STRING(STRIP ${QtFileTarget} QtFileTarget) | |||
|
26 | GET_FILENAME_COMPONENT(QtFileTargetDir ${QtFileTarget} DIRECTORY) | |||
|
27 | ||||
|
28 | IF(NOT EXISTS "${CMAKE_INSTALL_PREFIX}/${EXECUTABLE_OUTPUT_PATH}/${QtFileTarget}") | |||
|
29 | GET_FILENAME_COMPONENT(QtFileTargetDir ${QtFileTarget} DIRECTORY) | |||
|
30 | FILE(INSTALL DESTINATION "${EXECUTABLE_OUTPUT_PATH}/${QtFileTargetDir}" FILES "${QtFileSource}") | |||
|
31 | ENDIF() | |||
|
32 | ENDFOREACH() | |||
|
33 | ||||
|
34 | ENDIF() | |||
|
35 | ||||
|
36 | MESSAGE( "Exec windeployqt done" ) |
General Comments 0
You need to be logged in to leave comments.
Login now