|
|
|
@ -20,7 +20,7 @@ SET(QT_PROPERTY_EDITOR_RCS qtpropertybrowser.qrc)
|
|
|
|
|
SET(QT_USE_QTGUI TRUE)
|
|
|
|
|
|
|
|
|
|
IF(WITH_QT5)
|
|
|
|
|
SET(CMAKE_AUTOMOC ON)
|
|
|
|
|
SET(CMAKE_AUTOMOC OFF)
|
|
|
|
|
QT5_ADD_RESOURCES(QT_PROPERTY_EDITOR_RC_SRCS ${QT_PROPERTY_EDITOR_RCS})
|
|
|
|
|
QT5_WRAP_CPP(QT_PROPERTY_EDITOR_MOC_SRC ${QT_PROPERTY_EDITOR_HDR})
|
|
|
|
|
ELSE(WITH_QT5)
|
|
|
|
@ -33,9 +33,6 @@ SOURCE_GROUP(QtGeneratedMocSrc FILES ${QT_PROPERTY_EDITOR_MOC_SRC})
|
|
|
|
|
SOURCE_GROUP("Qt Property Editor Source" FILES ${SRC})
|
|
|
|
|
|
|
|
|
|
IF(WITH_QT5)
|
|
|
|
|
qt5_generate_moc(qtpropertymanager.cpp ${CMAKE_CURRENT_BINARY_DIR}/qtpropertymanager.moc)
|
|
|
|
|
qt5_generate_moc(qteditorfactory.cpp ${CMAKE_CURRENT_BINARY_DIR}/qteditorfactory.moc)
|
|
|
|
|
qt5_generate_moc(qttreepropertybrowser.cpp ${CMAKE_CURRENT_BINARY_DIR}/qttreepropertybrowser.moc)
|
|
|
|
|
ELSE(WITH_QT5)
|
|
|
|
|
qt4_generate_moc(qtpropertymanager.cpp ${CMAKE_CURRENT_BINARY_DIR}/qtpropertymanager.moc)
|
|
|
|
|
qt4_generate_moc(qteditorfactory.cpp ${CMAKE_CURRENT_BINARY_DIR}/qteditorfactory.moc)
|
|
|
|
|