parent
b6f573e08c
commit
a1aeec790f
13
utils.cmake
13
utils.cmake
|
@ -465,7 +465,7 @@ function(deploy_qt_runtime)
|
|||
message(WARNING "deploy_qt_runtime: Can't locate the QMake executable.")
|
||||
return()
|
||||
endif()
|
||||
get_filename_component(__qt_bin_dir "${QT_QMAKE_EXECUTABLE}" DIRECTORY)
|
||||
cmake_path(GET "${QT_QMAKE_EXECUTABLE}" PARENT_PATH __qt_bin_dir)
|
||||
find_program(__deploy_tool NAMES windeployqt macdeployqt HINTS "${__qt_bin_dir}")
|
||||
if(NOT EXISTS "${__deploy_tool}")
|
||||
message(WARNING "deploy_qt_runtime: Can't locate the deployqt tool.")
|
||||
|
@ -553,15 +553,8 @@ function(deploy_qt_runtime)
|
|||
elseif(UNIX)
|
||||
# TODO
|
||||
endif()
|
||||
set(__location)
|
||||
get_target_property(__location ${DEPLOY_ARGS_TARGET} LOCATION)
|
||||
if(__location)
|
||||
set(__dir)
|
||||
cmake_path(GET __location PARENT_PATH __dir)
|
||||
if(__dir)
|
||||
file(WRITE "${__dir}/qt.conf" "[Paths]\nPrefix = ..\n")
|
||||
endif()
|
||||
endif()
|
||||
get_target_property(__dir ${DEPLOY_ARGS_TARGET} RUNTIME_OUTPUT_DIRECTORY)
|
||||
file(WRITE "${__dir}/qt.conf" "[Paths]\nPrefix = ..\n")
|
||||
if(NOT DEPLOY_ARGS_NO_INSTALL)
|
||||
include(GNUInstallDirs)
|
||||
install(TARGETS ${DEPLOY_ARGS_TARGET}
|
||||
|
|
Loading…
Reference in New Issue