diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 71572599e..97402a0f1 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -1269,6 +1269,8 @@ IF (QT4_QMAKE_FOUND) SET(QT_QTGUI_LIB_DEPENDENCIES "") SET(QT_QTCORE_LIB_DEPENDENCIES "") + SET(QT_QTNETWORK_LIB_DEPENDENCIES "") + SET(QT_QTOPENGL_LIB_DEPENDENCIES "") SET(QT_QTHELP_LIB_DEPENDENCIES ${QT_QTCLUCENE_LIBRARY}) # build using shared Qt needs -DQT_DLL @@ -1278,6 +1280,10 @@ IF (QT4_QMAKE_FOUND) SET(QT_DEFINITIONS ${QT_DEFINITIONS} -DQT_DLL) ENDIF(NOT QT_CONFIG MATCHES "static") + # QtOpenGL dependencies + QT_QUERY_QMAKE(QMAKE_LIBS_OPENGL "QMAKE_LIBS_OPENGL") + SET (QT_QTOPENGL_LIB_DEPENDENCIES ${QT_QTOPENGL_LIB_DEPENDENCIES} ${QMAKE_LIBS_OPENGL}) + ## system png IF(QT_QCONFIG MATCHES "system-png") FIND_LIBRARY(QT_PNG_LIBRARY NAMES png) @@ -1362,6 +1368,12 @@ IF (QT4_QMAKE_FOUND) SET(QT_QTCORE_LIB_DEPENDENCIES ${QT_QTCORE_LIB_DEPENDENCIES} ${QT_ZLIB_LIBRARY}) MARK_AS_ADVANCED(QT_ZLIB_LIBRARY) ENDIF(QT_QCONFIG MATCHES "system-zlib") + + ## openssl + IF(QT_QCONFIG MATCHES "openssl") + FIND_PACKAGE(OpenSSL) + SET(QT_QTNETWORK_LIB_DEPENDENCIES ${QT_QTNETWORK_LIB_DEPENDENCIES} ${OPENSSL_LIBRARIES}) + ENDIF(QT_QCONFIG MATCHES "openssl") ## glib IF(QT_QCONFIG MATCHES "glib") @@ -1405,7 +1417,7 @@ IF (QT4_QMAKE_FOUND) MARK_AS_ADVANCED(QT_RT_LIBRARY) ENDIF(QT_POSIX_TIMERS) ENDIF(QT_QCONFIG MATCHES "clock-monotonic") - + IF(Q_WS_X11) # X11 libraries Qt absolutely depends on QT_QUERY_QMAKE(QT_LIBS_X11 "QMAKE_LIBS_X11")