# Install ParaView filters, etc ...
ADD_SUBDIRECTORY(resources)
+FIND_PACKAGE(ParaView COMPONENTS vtkPVCatalyst vtkPVPythonCatalyst)
+LIST(FIND VTK_MODULES_ENABLED vtkPVCatalyst vtkPVCatalyst_index)
+LIST(FIND VTK_MODULES_ENABLED vtkPVPythonCatalyst vtkPVPythonCatalyst_index)
+IF (${vtkPVCatalyst_index} GREATER -1 AND
+ ${vtkPVPythonCatalyst_index} GREATER -1)
+ SET(PVCATALYST_ENABLED yes)
+ENDIF()
+IF (PVCATALYST_ENABLED)
+ ADD_DEFINITIONS("-DPVCATALYST_ENABLED")
+ENDIF()
+
# --- options ---
INCLUDE_DIRECTORIES(
${PYTHON_DEFINITIONS}
)
-SET(_link_LIBRARIES
- ${KERNEL_SALOMELocalTrace}
+SET(_link_LIBRARIES
+ ${KERNEL_SALOMELocalTrace}
${KERNEL_OpUtil}
- PyInterp
- suit
- Event
+ PyInterp
+ suit
+ Event
PVServerService
pqApplicationComponents
vtkRenderingFreeTypeOpenGL
PVViewer_GUIElements.cxx
PVViewer_Core.cxx
)
-
+
# sources / to compile
-SET(PVViewer_SOURCES
- ${_other_SOURCES}
- ${_moc_SOURCES}
+SET(PVViewer_SOURCES
+ ${_other_SOURCES}
+ ${_moc_SOURCES}
${_rcc_SOURCES}
)
pqParaViewMenuBuilders::buildSourcesMenu(*sourcesMenu, desk);
filtersMenu = new QMenu(0);
pqParaViewMenuBuilders::buildFiltersMenu(*filtersMenu, desk);
+#ifdef PVCATALYST_ENABLED
+ catalystMenu = new QMenu(0);
+ pqParaViewMenuBuilders::buildCatalystMenu(*catalystMenu);
+#endif
macrosMenu = new QMenu(0);
pqParaViewMenuBuilders::buildMacrosMenu(*macrosMenu);
QMenu* getFiltersMenu() { return filtersMenu; }
QMenu* getSourcesMenu() { return sourcesMenu; }
QMenu* getMacrosMenu() { return macrosMenu; }
+#ifdef PVCATALYST_ENABLED
+ QMenu* getCatalystMenu() { return catalystMenu; }
+#endif
pqVCRToolbar* getVCRToolbar() { return vcrToolbar; }
pqAnimationTimeToolbar* getTimeToolbar() { return timeToolbar; }
QMenu* sourcesMenu;
QMenu* filtersMenu;
QMenu* macrosMenu;
+#ifdef PVCATALYST_ENABLED
+ QMenu* catalystMenu;
+#endif
// Toolbars also need to be instanciated early:
QToolBar* mainToolBar;