IF(EXISTS ${GUI_ROOT_DIR})
LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
FIND_PACKAGE(SalomeGUI REQUIRED)
- FULL_GUI(TRUE) # check whether GUI builded in full mode and with CORBA
+ SALOME_GUI_WITH_CORBA() #check whether GUI builded with CORBA
+ SALOME_GUI_MODE(SALOME_USE_SALOMEOBJECT SALOME_USE_PYCONSOLE OPTIONAL SALOME_USE_PVVIEWER)
ADD_DEFINITIONS(${GUI_DEFINITIONS})
INCLUDE_DIRECTORIES(${GUI_INCLUDE_DIRS})
ELSE(EXISTS ${GUI_ROOT_DIR})
#include CORBA_CLIENT_HEADER(SALOMEDS)
#include "MEDOPFactoryClient.hxx"
+#ifndef DISABLE_PVVIEWER
#include "PVViewer_ViewModel.h"
+#endif
MEDOPModule::MEDOPModule() :
StandardApp_Module()
void MEDOPModule::viewManagers( QStringList& list ) const
{
+#ifndef DISABLE_PVVIEWER
list.append( PVViewer_Viewer::Type() );
+#endif
}
// A last one to clear the console screen
//commands+="wipe";
+#ifndef DISABLE_PVVIEWER
// start PVServer and show render view
commands+="import pvsimple as pvs";
commands+="";
//commands+="pvs.ShowParaviewView()";
+#endif
this->exec(commands);
_importXmedDone = true;