2016-09-27 19:01:08 +00:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2013-10-15 15:17:36 +00:00
|
|
|
#.rst:
|
|
|
|
# FindQt3
|
|
|
|
# -------
|
|
|
|
#
|
|
|
|
# Locate Qt include paths and libraries
|
|
|
|
#
|
2005-12-15 14:19:23 +00:00
|
|
|
# This module defines:
|
|
|
|
#
|
2013-10-15 15:17:36 +00:00
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# QT_INCLUDE_DIR - where to find qt.h, etc.
|
|
|
|
# QT_LIBRARIES - the libraries to link against to use Qt.
|
|
|
|
# QT_DEFINITIONS - definitions to use when
|
|
|
|
# compiling code that uses Qt.
|
|
|
|
# QT_FOUND - If false, don't try to use Qt.
|
|
|
|
# QT_VERSION_STRING - the version of Qt found
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# If you need the multithreaded version of Qt, set QT_MT_REQUIRED to
|
|
|
|
# TRUE
|
2005-12-15 14:19:23 +00:00
|
|
|
#
|
|
|
|
# Also defined, but not for general use are:
|
2013-10-15 15:17:36 +00:00
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# QT_MOC_EXECUTABLE, where to find the moc tool.
|
|
|
|
# QT_UIC_EXECUTABLE, where to find the uic tool.
|
|
|
|
# QT_QT_LIBRARY, where to find the Qt library.
|
|
|
|
# QT_QTMAIN_LIBRARY, where to find the qtmain
|
|
|
|
# library. This is only required by Qt3 on Windows.
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2006-08-27 17:59:18 +00:00
|
|
|
# These are around for backwards compatibility
|
2005-07-15 16:14:47 +00:00
|
|
|
# they will be set
|
2005-12-14 18:51:08 +00:00
|
|
|
# QT_WRAP_CPP, set true if QT_MOC_EXECUTABLE is found
|
|
|
|
# QT_WRAP_UI set true if QT_UIC_EXECUTABLE is found
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2008-08-16 23:11:53 +00:00
|
|
|
# If Qt4 has already been found, fail.
|
2012-08-13 17:47:32 +00:00
|
|
|
if(QT4_FOUND)
|
|
|
|
if(Qt3_FIND_REQUIRED)
|
|
|
|
message( FATAL_ERROR "Qt3 and Qt4 cannot be used together in one project.")
|
2012-08-13 17:50:14 +00:00
|
|
|
else()
|
2012-08-13 17:47:32 +00:00
|
|
|
if(NOT Qt3_FIND_QUIETLY)
|
|
|
|
message( STATUS "Qt3 and Qt4 cannot be used together in one project.")
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2012-08-13 17:47:32 +00:00
|
|
|
return()
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
2008-08-16 23:11:53 +00:00
|
|
|
|
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
file(GLOB GLOB_PATHS /usr/lib/qt-3*)
|
|
|
|
foreach(GLOB_PATH ${GLOB_PATHS})
|
|
|
|
list(APPEND GLOB_PATHS_BIN "${GLOB_PATH}/bin")
|
2012-08-13 17:50:14 +00:00
|
|
|
endforeach()
|
2012-08-13 17:47:32 +00:00
|
|
|
find_path(QT_INCLUDE_DIR qt.h
|
2005-09-10 01:51:23 +00:00
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/include/Qt"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/include/Qt"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/include/Qt"
|
2005-07-15 16:14:47 +00:00
|
|
|
$ENV{QTDIR}/include
|
2012-03-02 16:31:34 +00:00
|
|
|
${GLOB_PATHS}
|
2005-07-15 16:14:47 +00:00
|
|
|
/usr/share/qt3/include
|
|
|
|
C:/Progra~1/qt/include
|
2012-12-05 17:36:14 +00:00
|
|
|
/usr/local/include/X11/qt3
|
2017-11-20 15:29:25 +00:00
|
|
|
PATH_SUFFIXES lib/qt/include lib/qt3/include include/qt include/qt3 qt/include qt3/include
|
2005-07-15 16:14:47 +00:00
|
|
|
)
|
|
|
|
|
2006-03-06 19:08:15 +00:00
|
|
|
# if qglobal.h is not in the qt_include_dir then set
|
|
|
|
# QT_INCLUDE_DIR to NOTFOUND
|
2012-08-13 17:47:32 +00:00
|
|
|
if(NOT EXISTS ${QT_INCLUDE_DIR}/qglobal.h)
|
|
|
|
set(QT_INCLUDE_DIR QT_INCLUDE_DIR-NOTFOUND CACHE PATH "path to Qt3 include directory" FORCE)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2006-03-06 19:08:15 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
if(QT_INCLUDE_DIR)
|
2005-07-15 16:14:47 +00:00
|
|
|
#extract the version string from qglobal.h
|
2012-08-19 11:54:56 +00:00
|
|
|
file(STRINGS ${QT_INCLUDE_DIR}/qglobal.h QGLOBAL_H REGEX "#define[\t ]+QT_VERSION_STR[\t ]+\"[0-9]+.[0-9]+.[0-9]+[a-z]*\"")
|
2012-08-13 17:47:32 +00:00
|
|
|
string(REGEX REPLACE ".*\"([0-9]+.[0-9]+.[0-9]+[a-z]*)\".*" "\\1" qt_version_str "${QGLOBAL_H}")
|
2012-08-19 11:54:56 +00:00
|
|
|
unset(QGLOBAL_H)
|
2005-07-15 16:14:47 +00:00
|
|
|
|
|
|
|
# Under windows the qt library (MSVC) has the format qt-mtXYZ where XYZ is the
|
|
|
|
# version X.Y.Z, so we need to remove the dots from version
|
2012-08-13 17:47:32 +00:00
|
|
|
string(REGEX REPLACE "\\." "" qt_version_str_lib "${qt_version_str}")
|
|
|
|
set(QT_VERSION_STRING "${qt_version_str}")
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
file(GLOB GLOB_PATHS_LIB /usr/lib/qt-3*/lib/)
|
|
|
|
if (QT_MT_REQUIRED)
|
|
|
|
find_library(QT_QT_LIBRARY
|
2005-09-12 14:28:48 +00:00
|
|
|
NAMES
|
|
|
|
qt-mt qt-mt${qt_version_str_lib} qt-mtnc${qt_version_str_lib}
|
2006-08-27 17:59:18 +00:00
|
|
|
qt-mtedu${qt_version_str_lib} qt-mt230nc qt-mtnc321 qt-mt3
|
2005-07-15 16:14:47 +00:00
|
|
|
PATHS
|
2012-03-28 22:51:06 +00:00
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]"
|
|
|
|
ENV QTDIR
|
|
|
|
${GLOB_PATHS_LIB}
|
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt
|
|
|
|
PATH_SUFFIXES
|
2017-11-20 15:29:25 +00:00
|
|
|
lib/qt lib/qt3 qt qt3 qt/lib qt3/lib
|
2005-07-15 16:14:47 +00:00
|
|
|
)
|
|
|
|
|
2012-08-13 17:50:14 +00:00
|
|
|
else ()
|
2012-08-13 17:47:32 +00:00
|
|
|
find_library(QT_QT_LIBRARY
|
2006-08-27 17:59:18 +00:00
|
|
|
NAMES
|
|
|
|
qt qt-${qt_version_str_lib} qt-edu${qt_version_str_lib}
|
2005-09-12 14:28:48 +00:00
|
|
|
qt-mt qt-mt${qt_version_str_lib} qt-mtnc${qt_version_str_lib}
|
2006-08-27 17:59:18 +00:00
|
|
|
qt-mtedu${qt_version_str_lib} qt-mt230nc qt-mtnc321 qt-mt3
|
2005-07-15 16:14:47 +00:00
|
|
|
PATHS
|
2012-03-28 22:51:06 +00:00
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]"
|
|
|
|
ENV QTDIR
|
|
|
|
${GLOB_PATHS_LIB}
|
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt/lib
|
|
|
|
PATH_SUFFIXES
|
2017-11-20 15:29:25 +00:00
|
|
|
lib/qt lib/qt3 qt qt3 qt/lib qt3/lib
|
2005-07-15 16:14:47 +00:00
|
|
|
)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif ()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
find_library(QT_QASSISTANTCLIENT_LIBRARY
|
2005-07-15 16:14:47 +00:00
|
|
|
NAMES qassistantclient
|
|
|
|
PATHS
|
2012-03-28 22:51:06 +00:00
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]"
|
|
|
|
ENV QTDIR
|
|
|
|
${GLOB_PATHS_LIB}
|
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt
|
|
|
|
PATH_SUFFIXES
|
2017-11-20 15:29:25 +00:00
|
|
|
lib/qt lib/qt3 qt qt3 qt/lib qt3/lib
|
2005-07-15 16:14:47 +00:00
|
|
|
)
|
|
|
|
|
2012-08-28 09:22:17 +00:00
|
|
|
# Qt 3 should prefer QTDIR over the PATH
|
2012-08-13 17:47:32 +00:00
|
|
|
find_program(QT_MOC_EXECUTABLE
|
2014-05-20 15:47:54 +00:00
|
|
|
NAMES moc-qt3 moc3 moc3-mt moc
|
2008-06-09 20:04:06 +00:00
|
|
|
HINTS
|
2012-03-28 22:51:06 +00:00
|
|
|
ENV QTDIR
|
2006-08-27 17:59:18 +00:00
|
|
|
PATHS
|
2005-09-12 13:32:21 +00:00
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/include/Qt"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/include/Qt"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/include/Qt"
|
|
|
|
${GLOB_PATHS_BIN}
|
2012-03-28 22:51:06 +00:00
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt
|
|
|
|
PATH_SUFFIXES
|
2017-11-20 15:29:25 +00:00
|
|
|
lib/qt lib/qt3 qt qt3 qt/lib qt3/lib
|
2005-07-15 16:14:47 +00:00
|
|
|
)
|
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
if(QT_MOC_EXECUTABLE)
|
|
|
|
set ( QT_WRAP_CPP "YES")
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2012-08-28 09:22:17 +00:00
|
|
|
# Qt 3 should prefer QTDIR over the PATH
|
2012-08-13 17:47:32 +00:00
|
|
|
find_program(QT_UIC_EXECUTABLE
|
2014-05-20 15:47:54 +00:00
|
|
|
NAMES uic-qt3 uic3 uic3-mt uic
|
2008-06-09 20:04:06 +00:00
|
|
|
HINTS
|
2012-03-28 22:51:06 +00:00
|
|
|
ENV QTDIR
|
2008-06-09 20:04:06 +00:00
|
|
|
PATHS
|
2005-09-12 13:32:21 +00:00
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/include/Qt"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/include/Qt"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/include/Qt"
|
|
|
|
${GLOB_PATHS_BIN}
|
2012-03-28 22:51:06 +00:00
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt
|
|
|
|
PATH_SUFFIXES
|
2017-11-20 15:29:25 +00:00
|
|
|
lib/qt lib/qt3 qt qt3 qt/lib qt3/lib
|
2005-07-15 16:14:47 +00:00
|
|
|
)
|
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
if(QT_UIC_EXECUTABLE)
|
|
|
|
set ( QT_WRAP_UI "YES")
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
if (WIN32)
|
|
|
|
find_library(QT_QTMAIN_LIBRARY qtmain
|
2012-02-20 20:02:11 +00:00
|
|
|
HINTS
|
2012-03-28 22:51:06 +00:00
|
|
|
ENV QTDIR
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]"
|
|
|
|
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]"
|
2012-02-20 20:02:11 +00:00
|
|
|
PATHS
|
2012-03-28 22:51:06 +00:00
|
|
|
"$ENV{ProgramFiles}/qt"
|
|
|
|
"C:/Program Files/qt"
|
2005-07-15 16:14:47 +00:00
|
|
|
DOC "This Library is only needed by and included with Qt3 on MSWindows. It should be NOTFOUND, undefined or IGNORE otherwise."
|
|
|
|
)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif ()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2012-03-02 15:56:41 +00:00
|
|
|
#support old QT_MIN_VERSION if set, but not if version is supplied by find_package()
|
2012-08-13 17:47:32 +00:00
|
|
|
if(NOT Qt3_FIND_VERSION AND QT_MIN_VERSION)
|
|
|
|
set(Qt3_FIND_VERSION ${QT_MIN_VERSION})
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
|
|
|
# if the include a library are found then we have it
|
2012-08-13 17:47:32 +00:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
2012-03-02 15:56:41 +00:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Qt3
|
|
|
|
REQUIRED_VARS QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE
|
|
|
|
VERSION_VAR QT_VERSION_STRING)
|
2012-08-13 17:47:32 +00:00
|
|
|
set(QT_FOUND ${QT3_FOUND} )
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
if(QT_FOUND)
|
|
|
|
set( QT_LIBRARIES ${QT_LIBRARIES} ${QT_QT_LIBRARY} )
|
|
|
|
set( QT_DEFINITIONS "")
|
2006-08-27 17:59:18 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
if (WIN32 AND NOT CYGWIN)
|
|
|
|
if (QT_QTMAIN_LIBRARY)
|
2005-07-15 16:14:47 +00:00
|
|
|
# for version 3
|
2012-08-13 17:47:32 +00:00
|
|
|
set (QT_DEFINITIONS -DQT_DLL -DQT_THREAD_SUPPORT -DNO_DEBUG)
|
|
|
|
set (QT_LIBRARIES imm32.lib ${QT_QT_LIBRARY} ${QT_QTMAIN_LIBRARY} )
|
|
|
|
set (QT_LIBRARIES ${QT_LIBRARIES} winmm wsock32)
|
2012-08-13 17:50:14 +00:00
|
|
|
else ()
|
2005-07-15 16:14:47 +00:00
|
|
|
# for version 2
|
2012-08-13 17:47:32 +00:00
|
|
|
set (QT_LIBRARIES imm32.lib ws2_32.lib ${QT_QT_LIBRARY} )
|
2012-08-13 17:50:14 +00:00
|
|
|
endif ()
|
|
|
|
else ()
|
2012-08-13 17:47:32 +00:00
|
|
|
set (QT_LIBRARIES ${QT_QT_LIBRARY} )
|
2006-08-27 17:59:18 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
set (QT_DEFINITIONS -DQT_SHARED -DQT_NO_DEBUG)
|
|
|
|
if(QT_QT_LIBRARY MATCHES "qt-mt")
|
|
|
|
set (QT_DEFINITIONS ${QT_DEFINITIONS} -DQT_THREAD_SUPPORT -D_REENTRANT)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2006-08-27 17:59:18 +00:00
|
|
|
|
2012-08-13 17:50:14 +00:00
|
|
|
endif ()
|
2006-08-27 17:59:18 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
if (QT_QASSISTANTCLIENT_LIBRARY)
|
|
|
|
set (QT_LIBRARIES ${QT_QASSISTANTCLIENT_LIBRARY} ${QT_LIBRARIES})
|
2012-08-13 17:50:14 +00:00
|
|
|
endif ()
|
2006-08-27 17:59:18 +00:00
|
|
|
|
2005-07-15 16:14:47 +00:00
|
|
|
# Backwards compatibility for CMake1.4 and 1.2
|
2012-08-13 17:47:32 +00:00
|
|
|
set (QT_MOC_EXE ${QT_MOC_EXECUTABLE} )
|
|
|
|
set (QT_UIC_EXE ${QT_UIC_EXECUTABLE} )
|
2005-07-15 16:14:47 +00:00
|
|
|
# for unix add X11 stuff
|
2012-08-13 17:47:32 +00:00
|
|
|
if(UNIX)
|
|
|
|
find_package(X11)
|
|
|
|
if (X11_FOUND)
|
|
|
|
set (QT_LIBRARIES ${QT_LIBRARIES} ${X11_LIBRARIES})
|
2012-08-13 17:50:14 +00:00
|
|
|
endif ()
|
2012-08-13 17:47:32 +00:00
|
|
|
if (CMAKE_DL_LIBS)
|
|
|
|
set (QT_LIBRARIES ${QT_LIBRARIES} ${CMAKE_DL_LIBS})
|
2012-08-13 17:50:14 +00:00
|
|
|
endif ()
|
|
|
|
endif()
|
2012-08-13 17:47:32 +00:00
|
|
|
if(QT_QT_LIBRARY MATCHES "qt-mt")
|
|
|
|
find_package(Threads)
|
|
|
|
set(QT_LIBRARIES ${QT_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
if(QT_MOC_EXECUTABLE)
|
|
|
|
execute_process(COMMAND ${QT_MOC_EXECUTABLE} "-v"
|
2012-03-02 15:55:17 +00:00
|
|
|
OUTPUT_VARIABLE QTVERSION_MOC
|
|
|
|
ERROR_QUIET)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2012-08-13 17:47:32 +00:00
|
|
|
if(QT_UIC_EXECUTABLE)
|
|
|
|
execute_process(COMMAND ${QT_UIC_EXECUTABLE} "-version"
|
2012-03-02 15:55:17 +00:00
|
|
|
OUTPUT_VARIABLE QTVERSION_UIC
|
|
|
|
ERROR_QUIET)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
set(_QT_UIC_VERSION_3 FALSE)
|
2014-04-11 16:17:46 +00:00
|
|
|
if("${QTVERSION_UIC}" MATCHES " 3.")
|
2012-08-13 17:47:32 +00:00
|
|
|
set(_QT_UIC_VERSION_3 TRUE)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2006-11-22 18:30:59 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
set(_QT_MOC_VERSION_3 FALSE)
|
2014-04-11 16:17:46 +00:00
|
|
|
if("${QTVERSION_MOC}" MATCHES " 3.")
|
2012-08-13 17:47:32 +00:00
|
|
|
set(_QT_MOC_VERSION_3 TRUE)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif()
|
2006-11-22 18:30:59 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
set(QT_WRAP_CPP FALSE)
|
|
|
|
if (QT_MOC_EXECUTABLE AND _QT_MOC_VERSION_3)
|
|
|
|
set ( QT_WRAP_CPP TRUE)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif ()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
set(QT_WRAP_UI FALSE)
|
|
|
|
if (QT_UIC_EXECUTABLE AND _QT_UIC_VERSION_3)
|
|
|
|
set ( QT_WRAP_UI TRUE)
|
2012-08-13 17:50:14 +00:00
|
|
|
endif ()
|
2005-07-15 16:14:47 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
mark_as_advanced(
|
2005-07-15 16:14:47 +00:00
|
|
|
QT_INCLUDE_DIR
|
|
|
|
QT_QT_LIBRARY
|
|
|
|
QT_QTMAIN_LIBRARY
|
|
|
|
QT_QASSISTANTCLIENT_LIBRARY
|
|
|
|
QT_UIC_EXECUTABLE
|
|
|
|
QT_MOC_EXECUTABLE
|
|
|
|
QT_WRAP_CPP
|
|
|
|
QT_WRAP_UI
|
2006-08-27 17:59:18 +00:00
|
|
|
)
|