From 4d890194265f00214148c6b7c8abd0996fb3ab54 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 13 Oct 2006 11:23:44 -0400 Subject: BUG: fix for bug#3898 find qt plugin dir --- Modules/FindQt4.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 0b0c9be..e146e63 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -75,6 +75,8 @@ # QT_QTTEST_INCLUDE_DIR Path to "include/QtTest" # # QT_LIBRARY_DIR Path to "lib" of Qt4 +# +# QT_PLUGINS_DIR Path to "plugins" for Qt4 # # For every library of Qt there are three variables: # QT_QTFOO_LIBRARY_RELEASE, which contains the full path to the release version @@ -317,6 +319,13 @@ IF (QT4_QMAKE_FOUND) SET(QT_MKSPECS_DIR ${qt_mkspecs_dir} CACHE PATH "The location of the Qt mkspecs") ENDIF (NOT QT_MKSPECS_DIR) + # ask qmake for the plugins directory + IF (NOT QT_PLUGINS_DIR) + EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE} + ARGS "-query QT_INSTALL_PLUGINS" + OUTPUT_VARIABLE qt_plugins_dir ) + SET(QT_PLUGINS_DIR ${qt_plugins_dir} CACHE PATH "The location of the Qt plugins") + ENDIF (NOT QT_PLUGINS_DIR) ######################################## # # Setting the INCLUDE-Variables -- cgit v0.12