summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-29 21:15:19 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-29 21:15:19 (GMT)
commitf0a9aa814ea6784eec85b5fe37ae0d39504f805c (patch)
tree4beb8954ef888b3016e9491a703422aeb4ac8bdb /Modules/FindQt.cmake
parent4faaf7c877b962015ad27e4d0a14026b3ec251c1 (diff)
downloadCMake-f0a9aa814ea6784eec85b5fe37ae0d39504f805c.zip
CMake-f0a9aa814ea6784eec85b5fe37ae0d39504f805c.tar.gz
CMake-f0a9aa814ea6784eec85b5fe37ae0d39504f805c.tar.bz2
ENH: Use FindX11 when doing Qt on unix
Diffstat (limited to 'Modules/FindQt.cmake')
-rw-r--r--Modules/FindQt.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake
index 691d3a1..e23134a 100644
--- a/Modules/FindQt.cmake
+++ b/Modules/FindQt.cmake
@@ -87,6 +87,13 @@ IF(QT_INCLUDE_DIR)
SET (QT_MOC_EXE ${QT_MOC_EXECUTABLE} )
SET (QT_UIC_EXE ${QT_UIC_EXECUTABLE} )
+ IF(UNIX)
+ INCLUDE( ${CMAKE_ROOT}/Modules/FindX11.cmake )
+ IF (X11_FOUND)
+ SET (QT_LIBRARIES ${QT_LIBRARIES} ${X11_LIBRARIES})
+ ENDIF (X11_FOUND)
+ ENDIF(UNIX)
+
ENDIF(QT_QT_LIBRARY)
ENDIF(QT_INCLUDE_DIR)