# -*- cmake -*-

IF (QT_QTWEBKIT_FOUND)
  SET(QT_USE_QTWEBKIT 1)
  SET(QT_USE_QTNETWORK 1)
  ADD_DEFINITIONS("-DHAVE_QTWEBKIT=1")
ENDIF (QT_QTWEBKIT_FOUND)

INCLUDE(${QT_USE_FILE})		     
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}")

SET(qtgui_SRC qtgui.h qtgui.cpp qtluagui.h qtluagui.cpp)

MACRO_INSTALL_QTLUA_FILES(qtgui init.lua)

MACRO_QT4_AUTOGEN(qtgui_GEN ${qtgui_SRC})
MACRO_ADD_QTLUA_MODULE(libqtgui ${qtgui_SRC} ${qtgui_GEN})

#ADD_TORCH_DOK(dok qtgui "QT Interface" "GUI" 6.)
