2016-09-27 22:01:08 +03: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 19:17:36 +04:00
|
|
|
#.rst:
|
|
|
|
# FindQt3
|
|
|
|
# -------
|
|
|
|
#
|
|
|
|
# Locate Qt include paths and libraries
|
|
|
|
#
|
2005-12-15 17:19:23 +03:00
|
|
|
# This module defines:
|
|
|
|
#
|
2013-10-15 19:17:36 +04: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 17:19:23 +03:00
|
|
|
#
|
|
|
|
# Also defined, but not for general use are:
|
2013-10-15 19:17:36 +04: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 20:14:47 +04:00
|
|
|
|
2006-08-27 21:59:18 +04:00
|
|
|
# These are around for backwards compatibility
|
2005-07-15 20:14:47 +04:00
|
|
|
# they will be set
|
2005-12-14 21:51:08 +03: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 20:14:47 +04:00
|
|
|
|
2008-08-17 03:11:53 +04:00
|
|
|
# If Qt4 has already been found, fail.
|
2012-08-13 21:47:32 +04:00
|
|
|
if(QT4_FOUND)
|
|
|
|
if(Qt3_FIND_REQUIRED)
|
|
|
|
message( FATAL_ERROR "Qt3 and Qt4 cannot be used together in one project.")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT Qt3_FIND_QUIETLY)
|
|
|
|
message( STATUS "Qt3 and Qt4 cannot be used together in one project.")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
return()
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endif()
|
2008-08-17 03:11:53 +04:00
|
|
|
|
|
|
|
|
2012-08-13 21:47:32 +04: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 21:50:14 +04:00
|
|
|
endforeach()
|
2012-08-13 21:47:32 +04:00
|
|
|
find_path(QT_INCLUDE_DIR qt.h
|
2005-09-10 05:51:23 +04: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 20:14:47 +04:00
|
|
|
$ENV{QTDIR}/include
|
2012-03-02 20:31:34 +04:00
|
|
|
${GLOB_PATHS}
|
2005-07-15 20:14:47 +04:00
|
|
|
/usr/local/qt/include
|
|
|
|
/usr/lib/qt/include
|
2006-08-30 21:51:22 +04:00
|
|
|
/usr/lib/qt3/include
|
2005-07-15 20:14:47 +04:00
|
|
|
/usr/include/qt
|
|
|
|
/usr/share/qt3/include
|
|
|
|
C:/Progra~1/qt/include
|
|
|
|
/usr/include/qt3
|
2012-12-05 21:36:14 +04:00
|
|
|
/usr/local/include/X11/qt3
|
2005-07-15 20:14:47 +04:00
|
|
|
)
|
|
|
|
|
2006-03-06 22:08:15 +03:00
|
|
|
# if qglobal.h is not in the qt_include_dir then set
|
|
|
|
# QT_INCLUDE_DIR to NOTFOUND
|
2012-08-13 21:47:32 +04: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 21:50:14 +04:00
|
|
|
endif()
|
2006-03-06 22:08:15 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(QT_INCLUDE_DIR)
|
2005-07-15 20:14:47 +04:00
|
|
|
#extract the version string from qglobal.h
|
2012-08-19 15:54:56 +04: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 21:47:32 +04:00
|
|
|
string(REGEX REPLACE ".*\"([0-9]+.[0-9]+.[0-9]+[a-z]*)\".*" "\\1" qt_version_str "${QGLOBAL_H}")
|
2012-08-19 15:54:56 +04:00
|
|
|
unset(QGLOBAL_H)
|
2005-07-15 20:14:47 +04: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 21:47:32 +04:00
|
|
|
string(REGEX REPLACE "\\." "" qt_version_str_lib "${qt_version_str}")
|
|
|
|
set(QT_VERSION_STRING "${qt_version_str}")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
file(GLOB GLOB_PATHS_LIB /usr/lib/qt-3*/lib/)
|
|
|
|
if (QT_MT_REQUIRED)
|
|
|
|
find_library(QT_QT_LIBRARY
|
2005-09-12 18:28:48 +04:00
|
|
|
NAMES
|
|
|
|
qt-mt qt-mt${qt_version_str_lib} qt-mtnc${qt_version_str_lib}
|
2006-08-27 21:59:18 +04:00
|
|
|
qt-mtedu${qt_version_str_lib} qt-mt230nc qt-mtnc321 qt-mt3
|
2005-07-15 20:14:47 +04:00
|
|
|
PATHS
|
2012-03-29 02:51:06 +04: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/local/qt
|
|
|
|
/usr/lib/qt
|
|
|
|
/usr/lib/qt3
|
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt
|
|
|
|
PATH_SUFFIXES
|
|
|
|
lib
|
2005-07-15 20:14:47 +04:00
|
|
|
)
|
|
|
|
|
2012-08-13 21:50:14 +04:00
|
|
|
else ()
|
2012-08-13 21:47:32 +04:00
|
|
|
find_library(QT_QT_LIBRARY
|
2006-08-27 21:59:18 +04:00
|
|
|
NAMES
|
|
|
|
qt qt-${qt_version_str_lib} qt-edu${qt_version_str_lib}
|
2005-09-12 18:28:48 +04:00
|
|
|
qt-mt qt-mt${qt_version_str_lib} qt-mtnc${qt_version_str_lib}
|
2006-08-27 21:59:18 +04:00
|
|
|
qt-mtedu${qt_version_str_lib} qt-mt230nc qt-mtnc321 qt-mt3
|
2005-07-15 20:14:47 +04:00
|
|
|
PATHS
|
2012-03-29 02:51:06 +04: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/local/qt
|
|
|
|
/usr/lib/qt
|
|
|
|
/usr/lib/qt3
|
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt/lib
|
|
|
|
PATH_SUFFIXES
|
|
|
|
lib
|
2005-07-15 20:14:47 +04:00
|
|
|
)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_library(QT_QASSISTANTCLIENT_LIBRARY
|
2005-07-15 20:14:47 +04:00
|
|
|
NAMES qassistantclient
|
|
|
|
PATHS
|
2012-03-29 02:51:06 +04: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/local/qt
|
|
|
|
/usr/lib/qt3
|
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt
|
|
|
|
PATH_SUFFIXES
|
|
|
|
lib
|
2005-07-15 20:14:47 +04:00
|
|
|
)
|
|
|
|
|
2012-08-28 13:22:17 +04:00
|
|
|
# Qt 3 should prefer QTDIR over the PATH
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(QT_MOC_EXECUTABLE
|
2014-05-20 19:47:54 +04:00
|
|
|
NAMES moc-qt3 moc3 moc3-mt moc
|
2008-06-10 00:04:06 +04:00
|
|
|
HINTS
|
2012-03-29 02:51:06 +04:00
|
|
|
ENV QTDIR
|
2006-08-27 21:59:18 +04:00
|
|
|
PATHS
|
2005-09-12 17:32:21 +04: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-12-05 21:36:14 +04:00
|
|
|
/usr/local/lib/qt3
|
2012-03-29 02:51:06 +04:00
|
|
|
/usr/local/qt
|
|
|
|
/usr/lib/qt
|
|
|
|
/usr/lib/qt3
|
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt
|
|
|
|
/usr/X11R6
|
|
|
|
PATH_SUFFIXES
|
|
|
|
bin
|
2005-07-15 20:14:47 +04:00
|
|
|
)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(QT_MOC_EXECUTABLE)
|
|
|
|
set ( QT_WRAP_CPP "YES")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
2012-08-28 13:22:17 +04:00
|
|
|
# Qt 3 should prefer QTDIR over the PATH
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(QT_UIC_EXECUTABLE
|
2014-05-20 19:47:54 +04:00
|
|
|
NAMES uic-qt3 uic3 uic3-mt uic
|
2008-06-10 00:04:06 +04:00
|
|
|
HINTS
|
2012-03-29 02:51:06 +04:00
|
|
|
ENV QTDIR
|
2008-06-10 00:04:06 +04:00
|
|
|
PATHS
|
2005-09-12 17:32:21 +04: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-29 02:51:06 +04:00
|
|
|
/usr/local/qt
|
|
|
|
/usr/lib/qt
|
|
|
|
/usr/lib/qt3
|
|
|
|
/usr/share/qt3
|
|
|
|
C:/Progra~1/qt
|
|
|
|
/usr/X11R6
|
|
|
|
PATH_SUFFIXES
|
|
|
|
bin
|
2005-07-15 20:14:47 +04:00
|
|
|
)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(QT_UIC_EXECUTABLE)
|
|
|
|
set ( QT_WRAP_UI "YES")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if (WIN32)
|
|
|
|
find_library(QT_QTMAIN_LIBRARY qtmain
|
2012-02-21 00:02:11 +04:00
|
|
|
HINTS
|
2012-03-29 02:51:06 +04: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-21 00:02:11 +04:00
|
|
|
PATHS
|
2012-03-29 02:51:06 +04:00
|
|
|
"$ENV{ProgramFiles}/qt"
|
|
|
|
"C:/Program Files/qt"
|
|
|
|
PATH_SUFFIXES
|
|
|
|
lib
|
2005-07-15 20:14:47 +04: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 21:50:14 +04:00
|
|
|
endif ()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
2012-03-02 19:56:41 +04:00
|
|
|
#support old QT_MIN_VERSION if set, but not if version is supplied by find_package()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT Qt3_FIND_VERSION AND QT_MIN_VERSION)
|
|
|
|
set(Qt3_FIND_VERSION ${QT_MIN_VERSION})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
|
|
|
# if the include a library are found then we have it
|
2012-08-13 21:47:32 +04:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
2012-03-02 19:56:41 +04: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 21:47:32 +04:00
|
|
|
set(QT_FOUND ${QT3_FOUND} )
|
2005-07-15 20:14:47 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(QT_FOUND)
|
|
|
|
set( QT_LIBRARIES ${QT_LIBRARIES} ${QT_QT_LIBRARY} )
|
|
|
|
set( QT_DEFINITIONS "")
|
2006-08-27 21:59:18 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if (WIN32 AND NOT CYGWIN)
|
|
|
|
if (QT_QTMAIN_LIBRARY)
|
2005-07-15 20:14:47 +04:00
|
|
|
# for version 3
|
2012-08-13 21:47:32 +04: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 21:50:14 +04:00
|
|
|
else ()
|
2005-07-15 20:14:47 +04:00
|
|
|
# for version 2
|
2012-08-13 21:47:32 +04:00
|
|
|
set (QT_LIBRARIES imm32.lib ws2_32.lib ${QT_QT_LIBRARY} )
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
|
|
|
else ()
|
2012-08-13 21:47:32 +04:00
|
|
|
set (QT_LIBRARIES ${QT_QT_LIBRARY} )
|
2006-08-27 21:59:18 +04:00
|
|
|
|
2012-08-13 21:47:32 +04: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 21:50:14 +04:00
|
|
|
endif()
|
2006-08-27 21:59:18 +04:00
|
|
|
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2006-08-27 21:59:18 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if (QT_QASSISTANTCLIENT_LIBRARY)
|
|
|
|
set (QT_LIBRARIES ${QT_QASSISTANTCLIENT_LIBRARY} ${QT_LIBRARIES})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2006-08-27 21:59:18 +04:00
|
|
|
|
2005-07-15 20:14:47 +04:00
|
|
|
# Backwards compatibility for CMake1.4 and 1.2
|
2012-08-13 21:47:32 +04:00
|
|
|
set (QT_MOC_EXE ${QT_MOC_EXECUTABLE} )
|
|
|
|
set (QT_UIC_EXE ${QT_UIC_EXECUTABLE} )
|
2005-07-15 20:14:47 +04:00
|
|
|
# for unix add X11 stuff
|
2012-08-13 21:47:32 +04:00
|
|
|
if(UNIX)
|
|
|
|
find_package(X11)
|
|
|
|
if (X11_FOUND)
|
|
|
|
set (QT_LIBRARIES ${QT_LIBRARIES} ${X11_LIBRARIES})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2012-08-13 21:47:32 +04:00
|
|
|
if (CMAKE_DL_LIBS)
|
|
|
|
set (QT_LIBRARIES ${QT_LIBRARIES} ${CMAKE_DL_LIBS})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(QT_QT_LIBRARY MATCHES "qt-mt")
|
|
|
|
find_package(Threads)
|
|
|
|
set(QT_LIBRARIES ${QT_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endif()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(QT_MOC_EXECUTABLE)
|
|
|
|
execute_process(COMMAND ${QT_MOC_EXECUTABLE} "-v"
|
2012-03-02 19:55:17 +04:00
|
|
|
OUTPUT_VARIABLE QTVERSION_MOC
|
|
|
|
ERROR_QUIET)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(QT_UIC_EXECUTABLE)
|
|
|
|
execute_process(COMMAND ${QT_UIC_EXECUTABLE} "-version"
|
2012-03-02 19:55:17 +04:00
|
|
|
OUTPUT_VARIABLE QTVERSION_UIC
|
|
|
|
ERROR_QUIET)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(_QT_UIC_VERSION_3 FALSE)
|
2014-04-11 20:17:46 +04:00
|
|
|
if("${QTVERSION_UIC}" MATCHES " 3.")
|
2012-08-13 21:47:32 +04:00
|
|
|
set(_QT_UIC_VERSION_3 TRUE)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-11-22 21:30:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(_QT_MOC_VERSION_3 FALSE)
|
2014-04-11 20:17:46 +04:00
|
|
|
if("${QTVERSION_MOC}" MATCHES " 3.")
|
2012-08-13 21:47:32 +04:00
|
|
|
set(_QT_MOC_VERSION_3 TRUE)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2006-11-22 21:30:59 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(QT_WRAP_CPP FALSE)
|
|
|
|
if (QT_MOC_EXECUTABLE AND _QT_MOC_VERSION_3)
|
|
|
|
set ( QT_WRAP_CPP TRUE)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(QT_WRAP_UI FALSE)
|
|
|
|
if (QT_UIC_EXECUTABLE AND _QT_UIC_VERSION_3)
|
|
|
|
set ( QT_WRAP_UI TRUE)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
2005-07-15 20:14:47 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
mark_as_advanced(
|
2005-07-15 20:14:47 +04: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 21:59:18 +04:00
|
|
|
)
|