Actually, QtCore and QtGui are not added by default when specifying
other components.
-# Find Qt core modules (QtCore and QtGui are searched by default).
-find_package(Qt4 ${QT_MIN_VERSION} REQUIRED QtDBus)
+# Find Qt core modules.
+find_package(Qt4 ${QT_MIN_VERSION} REQUIRED QtCore QtDBus)
# Search MLT package.
find_package(LIBMLT REQUIRED)
# Search MLT package.
find_package(LIBMLT REQUIRED)
find_package(OpenGL REQUIRED)
find_package(OpenGL REQUIRED)
-find_package(Qt4 ${QT_MIN_VERSION} REQUIRED QtOpenGL QtScript)
+find_package(Qt4 ${QT_MIN_VERSION} REQUIRED QtGui QtOpenGL QtScript)
if(APPLE)
find_package(SDL REQUIRED)
endif(APPLE)
if(APPLE)
find_package(SDL REQUIRED)
endif(APPLE)
# Adds Qt definitions and include directories, and sets QT_LIBRARIES according
# to the components requested in find_package().
# Adds Qt definitions and include directories, and sets QT_LIBRARIES according
# to the components requested in find_package().
if(${KDE_VERSION} VERSION_LESS 4.3.80)
set(KDE4_KNEWSTUFF_LIBS ${KDE4_KNEWSTUFF2_LIBS})
if(${KDE_VERSION} VERSION_LESS 4.3.80)
set(KDE4_KNEWSTUFF_LIBS ${KDE4_KNEWSTUFF2_LIBS})