ENH: Use FindX11 when doing Qt on unix

This commit is contained in:
Andy Cedilnik 2003-07-29 17:15:19 -04:00
parent 4faaf7c877
commit f0a9aa814e
1 changed files with 7 additions and 0 deletions

View File

@ -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)