diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-07-29 21:15:19 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-07-29 21:15:19 (GMT) |
commit | f0a9aa814ea6784eec85b5fe37ae0d39504f805c (patch) | |
tree | 4beb8954ef888b3016e9491a703422aeb4ac8bdb /Modules/FindQt.cmake | |
parent | 4faaf7c877b962015ad27e4d0a14026b3ec251c1 (diff) | |
download | CMake-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.cmake | 7 |
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) |