Query install directory for Qt plugins from qmake
This commit is contained in:
parent
cf86358f55
commit
0bd53c77b5
|
@ -118,7 +118,7 @@ set(META_APP_DESCRIPTION "Useful C++ classes and routines such as argument parse
|
|||
set(META_FEATURES_FOR_COMPILER_DETECTION_HEADER cxx_thread_local)
|
||||
set(META_VERSION_MAJOR 4)
|
||||
set(META_VERSION_MINOR 17)
|
||||
set(META_VERSION_PATCH 0)
|
||||
set(META_VERSION_PATCH 1)
|
||||
|
||||
# find required 3rd party libraries
|
||||
include(3rdParty)
|
||||
|
|
|
@ -376,7 +376,15 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS)
|
|||
if (QT_PLUGIN_DIR)
|
||||
set(LIBRARY_DESTINATION ${QT_PLUGIN_DIR})
|
||||
else ()
|
||||
set(LIBRARY_DESTINATION lib${SELECTED_LIB_SUFFIX}/qt/plugins)
|
||||
if (COMMAND query_qmake_variable)
|
||||
query_qmake_variable(QT_INSTALL_PLUGINS)
|
||||
endif()
|
||||
if (QT_INSTALL_PLUGINS)
|
||||
set(LIBRARY_DESTINATION ${QT_INSTALL_PLUGINS})
|
||||
else()
|
||||
set(LIBRARY_DESTINATION lib${SELECTED_LIB_SUFFIX}/qt/plugins)
|
||||
message(WARNING "Unable to detect appropriate install directory for Qt plugins (assuming \"${LIBRARY_DESTINATION}\").")
|
||||
endif()
|
||||
endif ()
|
||||
if (META_PLUGIN_CATEGORY)
|
||||
set(LIBRARY_DESTINATION ${LIBRARY_DESTINATION}/${META_PLUGIN_CATEGORY})
|
||||
|
|
Loading…
Reference in New Issue