#Special case for Main Window with QVTKWidget according VTK version
foreach(tool ${vv_TOOLS_VTK7} ${vv_COMMON_WITH_UI_VTK7})
set(vv_SRCS ${vv_SRCS} ${tool}.cxx)
- if(VTK_VERSION VERSION_GREATER "8.2.0")
+ if(VTK_VERSION VERSION_LESS "8.2.0")
if(vv_QT_VERSION VERSION_GREATER "4")
QT5_WRAP_CPP(vv_SRCS ${tool}.h)
- QT5_WRAP_UI(vv_UI_CXX qt_ui/${tool}.ui)
+ QT5_WRAP_UI(vv_UI_CXX qt_ui/${tool}VTK7.ui)
else()
QT4_WRAP_CPP(vv_SRCS ${tool}.h)
- QT4_WRAP_UI(vv_UI_CXX qt_ui/${tool}.ui)
+ QT4_WRAP_UI(vv_UI_CXX qt_ui/${tool}VTK7.ui)
endif()
else()
if(vv_QT_VERSION VERSION_GREATER "4")
QT5_WRAP_CPP(vv_SRCS ${tool}.h)
- QT5_WRAP_UI(vv_UI_CXX qt_ui/${tool}VTK7.ui)
+ QT5_WRAP_UI(vv_UI_CXX qt_ui/${tool}.ui)
else()
QT4_WRAP_CPP(vv_SRCS ${tool}.h)
- QT4_WRAP_UI(vv_UI_CXX qt_ui/${tool}VTK7.ui)
+ QT4_WRAP_UI(vv_UI_CXX qt_ui/${tool}.ui)
endif()
endif()
endforeach(tool)