]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Compilation ok for insitu component.
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Thu, 11 Aug 2016 16:12:05 +0000 (18:12 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Thu, 11 Aug 2016 16:12:05 +0000 (18:12 +0200)
TODO: deal with the conditional building of the insitu directory.

CMakeLists.txt
resources/PARAVISCatalog.xml.in
src/Insitu/VisualizationComponent/CMakeLists.txt

index 53ae344e81cac7bb31a22946465d883012937662..adc06fc3f8d6757863a401b7afd35cebf7ca5ee8 100644 (file)
@@ -164,6 +164,34 @@ IF(SALOME_PARAVIS_BUILD_PLUGINS)
     ENDIF()        
 ENDIF(SALOME_PARAVIS_BUILD_PLUGINS)
 
+#####################################
+# FIND MED
+#####################################
+SET(MED_ROOT_DIR $ENV{MED_ROOT_DIR} CACHE PATH "Path to MED module")
+IF(EXISTS ${MED_ROOT_DIR})
+  LIST(APPEND CMAKE_MODULE_PATH "${MED_ROOT_DIR}/adm_local/cmake_files")
+  FIND_PACKAGE(SalomeMED REQUIRED)
+  ADD_DEFINITIONS(${MED_DEFINITIONS})
+  INCLUDE_DIRECTORIES(${MED_INCLUDE_DIRS})
+ELSE(EXISTS ${MED_ROOT_DIR})
+  MESSAGE(FATAL_ERROR "We absolutely need MED module, please define MED_ROOT_DIR")
+ENDIF(EXISTS ${MED_ROOT_DIR})
+#####################################
+
+#####################################
+# FIND MEDCOUPLING
+#####################################
+SET(MEDCOUPLING_ROOT_DIR $ENV{MEDCOUPLING_ROOT_DIR} CACHE PATH "Path to MEDCOUPLING module")
+IF(EXISTS ${MEDCOUPLING_ROOT_DIR})
+  LIST(APPEND CMAKE_MODULE_PATH "${MEDCOUPLING_ROOT_DIR}/cmake_files")
+  FIND_PACKAGE(SalomeMEDCoupling REQUIRED)
+  ADD_DEFINITIONS(${MEDCOUPLING_DEFINITIONS})
+  INCLUDE_DIRECTORIES(${MEDCOUPLING_INCLUDE_DIRS})
+ELSE(EXISTS ${MEDCOUPLING_ROOT_DIR})
+  MESSAGE(FATAL_ERROR "We absolutely need MEDCOUPLING module, please define MEDCOUPLING_ROOT_DIR")
+ENDIF(EXISTS ${MEDCOUPLING_ROOT_DIR})
+#####################################
+
 ##
 ## From GEOM
 ##
index c10b27ef58ee81fea4b8c2cc146e3768c4af3a05..e827c05800e3a59c75a1e0eb32c0fe8c46bb5a33 100644 (file)
                           <inParameter-list>
                               <inParameter>
                                 <inParameter-name>field</inParameter-name>
-                                <inParameter-type>
-SALOME_MED/ParaMEDCouplingFieldDoubleCorbaInterface
-                                </inParameter-type>
+                                <inParameter-type>SALOME_MED/ParaMEDCouplingFieldDoubleCorbaInterface</inParameter-type>
                             </inParameter>
                               <inParameter>
-                                <inParameter-name>
-                                  path_python_file
-                                </inParameter-name>
+                                <inParameter-name>path_python_file</inParameter-name>
                                 <inParameter-type>string</inParameter-type>
                             </inParameter>
                           </inParameter-list>
                           <outParameter-list>
-
                           </outParameter-list>
                           <DataStream-list>
-
                           </DataStream-list>
                       </component-service>
                   </component-service-list>
index d3344fa053dcbfb93ee400f579a4945be251c1df..2ccee2d6f43ad1335b97d4cba4d2732ecfad4169 100644 (file)
@@ -15,7 +15,7 @@ ADD_DEFINITIONS(
 )
 
 # find additional libraries
-FIND_LIBRARY( _userlib_visulib visulib PATH /home/I35256/salome/install/V7_main_git/modules/install/PARAVIS_master/lib/salome)
+#FIND_LIBRARY( _userlib_visulib visulib PATH /home/I35256/salome/install/V7_main_git/modules/install/PARAVIS_master/lib/salome)
 #FIND_LIBRARY( _userlib_MEDLoaderForPV MEDLoaderForPV PATH /home/I35256/salome/install/V7_main_git/modules/install/PARAVIS_master/lib/salome)