mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
fa55751f83
In Qt 5.1, Qt5::Core has a INTERFACE_QT_MAJOR_VERSION property
of '5', and since CMake 2.8.11, Qt4::QtCore has an
INTERFACE_QT_MAJOR_VERSION of '4'. This was introduced in
commit 4aa10cd6
(FindQt4: Set the INTERFACE_QT_MAJOR_VERSION for
Qt4::QtCore, 2013-03-16), to produce an error if Qt 4 and Qt 5
are erroneously used by the same target. This can also be used
however to determine the Qt major version, and therefore the
particular moc executable to use during automoc steps. This means
that targets in a single buildsystem can use a selection of Qt 4
and Qt 5, and still take advantage of the CMAKE_AUTOMOC feature
without conflicting.
15 lines
675 B
CMake
15 lines
675 B
CMake
set(AM_SOURCES @_moc_files@ )
|
|
set(AM_HEADERS @_moc_headers@ )
|
|
set(AM_MOC_COMPILE_DEFINITIONS @_moc_compile_defs@)
|
|
set(AM_MOC_INCLUDES @_moc_incs@)
|
|
set(AM_MOC_OPTIONS @_moc_options@)
|
|
set(AM_CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE "@CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE@")
|
|
set(AM_CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@/")
|
|
set(AM_CMAKE_SOURCE_DIR "@CMAKE_SOURCE_DIR@/")
|
|
set(AM_QT_MOC_EXECUTABLE "@_qt_moc_executable@")
|
|
set(AM_CMAKE_CURRENT_SOURCE_DIR "@CMAKE_CURRENT_SOURCE_DIR@/")
|
|
set(AM_CMAKE_CURRENT_BINARY_DIR "@CMAKE_CURRENT_BINARY_DIR@/")
|
|
set(AM_QT_VERSION_MAJOR "@_target_qt_version@")
|
|
set(AM_TARGET_NAME @_moc_target_name@)
|
|
set(AM_RELAXED_MODE "@_moc_relaxed_mode@")
|