git-svn-id: svn://db.shs.com.ru/libs@296 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2017-10-13 13:51:25 +00:00
parent 9a88a11651
commit 52f492f0d6
9 changed files with 141 additions and 112 deletions

View File

@@ -433,11 +433,19 @@ endmacro()
# to corresponding Qt plugins directory
macro(qt_install)
set(_prev_inst)
#message("command: ${ARGN}")
foreach(_v ${_QT_VERSIONS_})
if (LOCAL_FOUND${_v})
set(_INST_LIST)
set(_IS_TARGET 0)
set(_IS_FILES 0)
set(_IS_DEST 0)
set(_IS_LANG 0)
foreach(_i ${ARGN})
if ("x${_i}" STREQUAL "xQtLang")
set(_IS_LANG 1)
endif()
endforeach()
foreach(_i ${ARGN})
if (_IS_TARGET)
set(_IS_TARGET 0)
@@ -447,31 +455,48 @@ macro(qt_install)
set(_INST_LIST ${_INST_LIST} ${_i})
endif()
else()
if (_IS_DEST)
set(_IS_DEST 0)
if ("x${_i}" STREQUAL "xQtBin")
set(_INST_LIST ${_INST_LIST} "${Qt${_v}_BIN}")
else()
if ("x${_i}" STREQUAL "xQtLang")
set(_INST_LIST ${_INST_LIST} "${Qt${_v}_LANG_DIR}")
if (_IS_FILES)
set(_IS_FILES 0)
if (_IS_LANG)
if (("x${${_i}_Qt${_v}}" STREQUAL "x") OR ("x${_i}" STREQUAL "xDESTINATION"))
return()
else()
set(_ind -1)
string(FIND "${_i}" "QtPlugins" _ind)
if (_ind GREATER_EQUAL 0)
string(REPLACE "QtPlugins" "${Qt${_v}_PLUGINS_DIR}" _o "${_i}")
set(_INST_LIST ${_INST_LIST} "${_o}")
else()
set(_INST_LIST ${_INST_LIST} ${_i})
endif()
set(_INST_LIST ${_INST_LIST} ${${_i}_Qt${_v}})
endif()
else()
set(_INST_LIST ${_INST_LIST} ${_i})
endif()
else()
set(_INST_LIST ${_INST_LIST} ${_i})
if ("x${_i}" STREQUAL "xTARGETS")
set(_IS_TARGET 1)
if (_IS_DEST)
set(_IS_DEST 0)
if ("x${_i}" STREQUAL "xQtBin")
set(_INST_LIST ${_INST_LIST} "${Qt${_v}_BIN}")
else()
if ("x${_i}" STREQUAL "xQtLang")
set(_INST_LIST ${_INST_LIST} "${Qt${_v}_LANG_DIR}")
else()
set(_ind -1)
string(FIND "${_i}" "QtPlugins" _ind)
if (_ind GREATER_EQUAL 0)
string(REPLACE "QtPlugins" "${Qt${_v}_PLUGINS_DIR}" _o "${_i}")
set(_INST_LIST ${_INST_LIST} "${_o}")
else()
set(_INST_LIST ${_INST_LIST} ${_i})
endif()
endif()
endif()
else()
if ("x${_i}" STREQUAL "xDESTINATION")
set(_IS_DEST 1)
set(_INST_LIST ${_INST_LIST} ${_i})
if ("x${_i}" STREQUAL "xTARGETS")
set(_IS_TARGET 1)
else()
if ("x${_i}" STREQUAL "xFILES")
set(_IS_FILES 1)
else()
if ("x${_i}" STREQUAL "xDESTINATION")
set(_IS_DEST 1)
endif()
endif()
endif()
endif()
endif()