~ubuntu-branches/ubuntu/intrepid/cmake/intrepid-backports

« back to all changes in this revision

Viewing changes to Modules/FindQt.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Maitland Bottoms
  • Date: 2002-02-14 18:36:25 UTC
  • Revision ID: james.westby@ubuntu.com-20020214183625-8m44isdas2k4l0f7
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Locate Qt include paths and libraries
 
2
 
 
3
# This module defines
 
4
# QT_INCLUDE_PATH, where to find qt.h, etc.
 
5
# QT_QT_LIBRARY, where to find the qt library
 
6
# QT_MOC_EXE, where to find the moc tool
 
7
# QT_UIC_EXE, where to find the uic tool
 
8
# USE_QT_FILE, a file for any CMakeLists.txt file to include to actually link against qt
 
9
# QT_WRAP_CPP, This allows the QT_WRAP_CPP command to work.
 
10
# QT_WRAP_UI, This allows the QT_WRAP_UI command to work.
 
11
 
 
12
 
 
13
IF (UNIX)
 
14
 
 
15
  FIND_PATH(QT_INCLUDE_PATH qt.h
 
16
    ${QTDIR}/include
 
17
    /usr/local/qt/include
 
18
    /usr/local/include
 
19
    /usr/include
 
20
  )
 
21
 
 
22
  FIND_LIBRARY(QT_QT_LIBRARY qt
 
23
    ${QTDIR}/lib
 
24
    /usr/local/qt/lib
 
25
    /usr/local/lib
 
26
    /usr/lib
 
27
  )
 
28
 
 
29
  FIND_FILE(QT_MOC_EXE moc
 
30
    ${QTDIR}/bin
 
31
    ${path}
 
32
  )
 
33
 
 
34
  FIND_FILE(QT_UIC_EXE uic
 
35
    ${QTDIR}/bin
 
36
    ${path}
 
37
  )
 
38
 
 
39
ENDIF (UNIX)
 
40
 
 
41
IF (WIN32)
 
42
  # Not sure where to look for Qt under windows
 
43
  # Assume that QTDIR has been set
 
44
 
 
45
  FIND_PATH(QT_INCLUDE_PATH qt.h
 
46
    ${QTDIR}/include
 
47
  )
 
48
 
 
49
  FIND_LIBRARY(QT_QT_LIBRARY qt
 
50
    ${QTDIR}/lib
 
51
  )
 
52
 
 
53
  FIND_FILE(QT_MOC_EXE moc.exe
 
54
    ${QTDIR}/bin
 
55
    ${path}
 
56
  )
 
57
 
 
58
  FIND_FILE(QT_UIC_EXE uic.exe
 
59
    ${QTDIR}/bin
 
60
    ${path}
 
61
  )
 
62
 
 
63
ENDIF (WIN32)
 
64
 
 
65
 
 
66
IF (QT_MOC_EXE)
 
67
  SET ( QT_WRAP_CPP 1 CACHE BOOL "Can we honour the QT_WRAP_CPP command" )
 
68
ENDIF (QT_MOC_EXE)
 
69
 
 
70
IF (QT_UIC_EXE)
 
71
  SET ( QT_WRAP_UI 1 CACHE BOOL "Can we honour the QT_WRAP_UI command" )
 
72
ENDIF (QT_UIC_EXE)
 
73
 
 
74
 
 
75
 
 
76