ENH: Use FindX11 when doing Qt on unix
This commit is contained in:
parent
4faaf7c877
commit
f0a9aa814e
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue