# - Find QT 4
# This module can be used to find Qt4.
# The most important issue is that the Qt4 qmake is available via the system path.
# This qmake is then used to detect basically everything else.
# This module defines a number of key variables and macros. First is
# QT_USE_FILE which is the path to a CMake file that can be included to compile
# Qt 4 applications and libraries. By default, the QtCore and QtGui
# libraries are loaded. This behavior can be changed by setting one or more
# of the following variables to true:
# QT_DONT_USE_QTCORE
# QT_DONT_USE_QTGUI
# QT_USE_QT3SUPPORT
# QT_USE_QTASSISTANT
# QT_USE_QTDESIGNER
# QT_USE_QTMOTIF
# QT_USE_QTMAIN
# QT_USE_QTNETWORK
# QT_USE_QTNSPLUGIN
# QT_USE_QTOPENGL
# QT_USE_QTSQL
# QT_USE_QTXML
# QT_USE_QTSVG
# QT_USE_QTTEST
# QT_USE_QTUITOOLS
# QT_USE_QTDBUS
# QT_USE_QTSCRIPT
#
# All the libraries required are stored in a variable called QT_LIBRARIES.
# Add this variable to your TARGET_LINK_LIBRARIES.
#
# macro QT4_WRAP_CPP(outfiles inputfile ... OPTIONS ...)
# create moc code from a list of files containing Qt class with
# the Q_OBJECT declaration. Options may be given to moc, such as those found
# when executing "moc -help"
#
# macro QT4_WRAP_UI(outfiles inputfile ... OPTIONS ...)
# create code from a list of Qt designer ui files.
# Options may be given to uic, such as those found
# when executing "uic -help"
#
# macro QT4_ADD_RESOURCES(outfiles inputfile ... OPTIONS ...)
# create code from a list of Qt resource files.
# Options may be given to rcc, such as those found
# when executing "rcc -help"
#
# macro QT4_AUTOMOC(inputfile ... )
# macro QT4_GENERATE_MOC(inputfile outputfile )
#
# macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename)
# create a the interface header and implementation files with the
# given basename from the given interface xml file and add it to
# the list of sources.
# To disable generating a namespace header, set the source file property
# NO_NAMESPACE to TRUE on the interface file.
#
# macro QT4_ADD_DBUS_INTERFACES(outfiles inputfile ... )
# create the interface header and implementation files
# for all listed interface xml files
# the name will be automatically determined from the name of the xml file
# To disable generating namespace headers, set the source file property
# NO_NAMESPACE to TRUE for these inputfiles.
#
# macro QT4_ADD_DBUS_ADAPTOR(outfiles xmlfile parentheader parentclassname [basename] [classname])
# create a dbus adaptor (header and implementation file) from the xml file
# describing the interface, and add it to the list of sources. The adaptor
# forwards the calls to a parent class, defined in parentheader and named
# parentclassname. The name of the generated files will be
# <basename>adaptor.{cpp,h} where basename defaults to the basename of the xml file.
# If <classname> is provided, then it will be used as the classname of the
# adaptor itself.
#
# macro QT4_GENERATE_DBUS_INTERFACE( header [interfacename] OPTIONS ...)
# generate the xml interface file from the given header.
# If the optional argument interfacename is omitted, the name of the
# interface file is constructed from the basename of the header with
# the suffix .xml appended.
# Options may be given to uic, such as those found when executing "qdbuscpp2xml --help"
#
# QT_FOUND If false, don't try to use Qt.
# QT4_FOUND If false, don't try to use Qt 4.
#
# QT4_QTCORE_FOUND True if QtCore was found.
# QT4_QTGUI_FOUND True if QtGui was found.
# QT4_QT3SUPPORT_FOUND True if Qt3Support was found.
# QT4_QTASSISTANT_FOUND True if QtAssistant was found.
# QT4_QTDBUS_FOUND True if QtDBus was found.
# QT4_QTDESIGNER_FOUND True if QtDesigner was found.
# QT4_QTDESIGNERCOMPONENTS True if QtDesignerComponents was found.
# QT4_QTMOTIF_FOUND True if QtMotif was found.
# QT4_QTNETWORK_FOUND True if QtNetwork was found.
# QT4_QTNSPLUGIN_FOUND True if QtNsPlugin was found.
# QT4_QTOPENGL_FOUND True if QtOpenGL was found.
# QT4_QTSQL_FOUND True if QtSql was found.
# QT4_QTXML_FOUND True if QtXml was found.
# QT4_QTSVG_FOUND True if QtSvg was found.
# QT4_QTSCRIPT_FOUND True if QtScript was found.
# QT4_QTTEST_FOUND True if QtTest was found.
# QT4_QTUITOOLS_FOUND True if QtUiTools was found.
#
# QT4_DEFINITIONS Definitions to use when compiling code that uses Qt.
#
# QT4_INCLUDES List of paths to all include directories of
# Qt4 QT4_INCLUDE_DIR and QT4_QTCORE_INCLUDE_DIR are
# always in this variable even if NOTFOUND,
# all other INCLUDE_DIRS are
# only added if they are found.
#
# QT4_INCLUDE_DIR Path to "include" of Qt4
# QT4_QT4_INCLUDE_DIR Path to "include/Qt"
# QT4_QT3SUPPORT_INCLUDE_DIR Path to "include/Qt3Support"
# QT4_QTASSISTANT_INCLUDE_DIR Path to "include/QtAssistant"
# QT4_QTCORE_INCLUDE_DIR Path to "include/QtCore"
# QT4_QTDESIGNER_INCLUDE_DIR Path to "include/QtDesigner"
# QT4_QTDESIGNERCOMPONENTS_INCLUDE_DIR Path to "include/QtDesigner"
# QT4_QTDBUS_INCLUDE_DIR Path to "include/QtDBus"
# QT4_QTGUI_INCLUDE_DIR Path to "include/QtGui"
# QT4_QTMOTIF_INCLUDE_DIR Path to "include/QtMotif"
# QT4_QTNETWORK_INCLUDE_DIR Path to "include/QtNetwork"
# QT4_QTNSPLUGIN_INCLUDE_DIR Path to "include/QtNsPlugin"
# QT4_QTOPENGL_INCLUDE_DIR Path to "include/QtOpenGL"
# QT4_QTSQL_INCLUDE_DIR Path to "include/QtSql"
# QT4_QTXML_INCLUDE_DIR Path to "include/QtXml"
# QT4_QTSVG_INCLUDE_DIR Path to "include/QtSvg"
# QT4_QTSCRIPT_INCLUDE_DIR Path to "include/QtScript"
# QT4_QTTEST_INCLUDE_DIR Path to "include/QtTest"
#
# QT4_LIBRARY_DIR Path to "lib" of Qt4
#
# QT4_PLUGINS_DIR Path to "plugins" for Qt4
#
# For every library of Qt, a QT4_QTFOO_LIBRARY variable is defined, with the full path to the library.
#
# So there are the following variables:
# The Qt3Support library: QT4_QT3SUPPORT_LIBRARY
#
# The QtAssistant library: QT4_QTASSISTANT_LIBRARY
#
# The QtCore library: QT4_QTCORE_LIBRARY
#
# The QtDBus library: QT4_QTDBUS_LIBRARY
#
# The QtDesigner library: QT4_QTDESIGNER_LIBRARY
#
# The QtDesignerComponents library: QT4_QTDESIGNERCOMPONENTS_LIBRARY
#
# The QtGui library: QT4_QTGUI_LIBRARY
#
# The QtMotif library: QT4_QTMOTIF_LIBRARY
#
# The QtNetwork library: QT4_QTNETWORK_LIBRARY
#
# The QtNsPLugin library: QT4_QTNSPLUGIN_LIBRARY
#
# The QtOpenGL library: QT4_QTOPENGL_LIBRARY
#
# The QtSql library: QT4_QTSQL_LIBRARY
#
# The QtXml library: QT4_QTXML_LIBRARY
#
# The QtSvg library: QT4_QTSVG_LIBRARY
#
# The QtScript library: QT4_QTSCRIPT_LIBRARY
#
# The QtTest library: QT4_QTTEST_LIBRARY
#
# The qtmain library for Windows QT4_QTMAIN_LIBRARY