##// END OF EJS Templates
add qt cmake file for cpack. (forgotten from cpackforwindows commit)
perrinel -
r62:ceb48355d52b
parent child
Show More
@@ -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 8
Under Review
author

Auto status change to "Under Review"

Approved
author

Status change > Approved

Under Review
author

Pull request updated. Auto status change to "Under Review"

Changed commits:
  * 1 added
  * 0 removed

Changed files:
  * M core/CMakeLists.txt
Approved
author

Status change > Approved

You need to be logged in to leave comments. Login now