1
# Locate Qt include paths and libraries
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.
15
FIND_PATH(QT_INCLUDE_PATH qt.h
22
FIND_LIBRARY(QT_QT_LIBRARY qt
29
FIND_FILE(QT_MOC_EXE moc
34
FIND_FILE(QT_UIC_EXE uic
42
# Not sure where to look for Qt under windows
43
# Assume that QTDIR has been set
45
FIND_PATH(QT_INCLUDE_PATH qt.h
49
FIND_LIBRARY(QT_QT_LIBRARY qt
53
FIND_FILE(QT_MOC_EXE moc.exe
58
FIND_FILE(QT_UIC_EXE uic.exe
67
SET ( QT_WRAP_CPP 1 CACHE BOOL "Can we honour the QT_WRAP_CPP command" )
71
SET ( QT_WRAP_UI 1 CACHE BOOL "Can we honour the QT_WRAP_UI command" )