set(MGL_HAVE_QT4 1)
if(enable-json-sample)
set(MGL_QT4_LIBS Core Gui Network WebKit OpenGL)
FIND_PACKAGE(Qt4 4.8 REQUIRED QtCore QtGui QtNetwork QtWebKit QtOpenGL)
else(enable-json-sample)
set(MGL_QT4_LIBS Core Gui OpenGL)
FIND_PACKAGE(Qt4 4.8 REQUIRED QtCore QtGui QtOpenGL)
endif(enable-json-sample)
if(NOT QT4_FOUND)
	message(SEND_ERROR "Couldn't find Qt4 library.")
endif(NOT QT4_FOUND)

set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
