~ubuntu-branches/ubuntu/oneiric/pyside/oneiric

« back to all changes in this revision

Viewing changes to cmake/Macros/FindQt4Extra.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2010-10-19 22:52:14 UTC
  • mfrom: (1.1.4 upstream)
  • mto: (13.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101019225214-0s9fbpz12x3962qa
Tags: upstream-0.4.2
ImportĀ upstreamĀ versionĀ 0.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Try to find QtMultimedia
 
3
# TODO: Remove this hack when cmake support QtMultimedia module
 
4
if (NOT QT_QTMULTIMEDIA_FOUND AND ${QTVERSION} VERSION_GREATER 4.5.9)
 
5
    find_path(QT_QTMULTIMEDIA_INCLUDE_DIR QtMultimedia
 
6
            PATHS ${QT_HEADERS_DIR}/QtMultimedia
 
7
                ${QT_LIBRARY_DIR}/QtMultimedia.framework/Headers
 
8
            NO_DEFAULT_PATH)
 
9
    find_library(QT_QTMULTIMEDIA_LIBRARY QtMultimedia PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH)
 
10
    if (QT_QTMULTIMEDIA_INCLUDE_DIR AND QT_QTMULTIMEDIA_LIBRARY)
 
11
        set(QT_QTMULTIMEDIA_FOUND ON)
 
12
    else()
 
13
        #Replace this on documentation
 
14
        set(if_QtMultimedia "<!--")
 
15
        set(end_QtMultimedia "-->")
 
16
    endif()
 
17
endif ()
 
18
 
 
19
# Try to find QtMaemo5 - it has to be done before QtGui to enable some QtMaemo5 flags
 
20
# TODO: Remove this hack when cmake support QtMaemo5 module
 
21
if (NOT QT_QTMAEMO5_FOUND AND ${QTVERSION} VERSION_GREATER 4.5.9)
 
22
    find_path(QT_QTMAEMO5_INCLUDE_DIR QtMaemo5
 
23
            PATHS ${QT_HEADERS_DIR}/QtMaemo5
 
24
                ${QT_LIBRARY_DIR}/QtMaemo5.framework/Headers
 
25
            NO_DEFAULT_PATH)
 
26
    find_library(QT_QTMAEMO5_LIBRARY QtMaemo5 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH)
 
27
    if (QT_QTMAEMO5_INCLUDE_DIR AND QT_QTMAEMO5_LIBRARY)
 
28
        set(QT_QTMAEMO5_FOUND ON)
 
29
        set(Q_WS_MAEMO_5 ON)
 
30
    else()
 
31
        #Replace this on documentation
 
32
        set(if_Maemo5 "<!--")
 
33
        set(end_Maemo5 "-->")
 
34
    endif()
 
35
endif ()
 
36
 
 
37
# Try to find QtDeclarative
 
38
# TODO: Remove this hack when cmake support QtDeclarative module
 
39
if (NOT QT_QTDECLARATIVE_FOUND AND ${QTVERSION} VERSION_GREATER 4.6.0)
 
40
    find_path(QT_QTDECLARATIVE_INCLUDE_DIR QtDeclarative
 
41
            PATHS ${QT_HEADERS_DIR}/QtDeclarative
 
42
                ${QT_LIBRARY_DIR}/QtDeclarative.framework/Headers
 
43
            NO_DEFAULT_PATH)
 
44
    find_library(QT_QTDECLARATIVE_LIBRARY QtDeclarative PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH)
 
45
    if (QT_QTDECLARATIVE_INCLUDE_DIR AND QT_QTDECLARATIVE_LIBRARY)
 
46
        set(QT_QTDECLARATIVE_FOUND ON)
 
47
    else()
 
48
        #Replace this on documentation
 
49
        set(if_QtDeclarative "<!--")
 
50
        set(end_QtDeclarative "-->")
 
51
    endif()
 
52
endif ()
 
53
 
 
54