]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
[EDF30834] : Declaration in medcoupling exts. WIP
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 29 Aug 2024 11:03:22 +0000 (13:03 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 29 Aug 2024 11:03:22 +0000 (13:03 +0200)
CMakeLists.txt
src/CMakeLists.txt
src/PyWrapping/medcoupling.i

index 1c36a9189a3e4b0322b0410b1e150914cc088e3e..fff7065d3164c46fa3d3770488c132e9af241c3b 100644 (file)
@@ -88,7 +88,7 @@ OPTION(MEDCOUPLING_MICROMED "Build MED without MED file dependency." OFF)
 OPTION(MEDCOUPLING_ENABLE_PYTHON "Build PYTHON bindings." ON)
 OPTION(MEDCOUPLING_ENABLE_PARTITIONER "Build MEDPartitioner." ON)
 OPTION(MEDCOUPLING_ENABLE_RENUMBER "Build Renumber." ON)
-OPTION(MEDCOUPLING_ENABLE_SHAPERECOGN "Build ShapeRecogn" OFF)
+OPTION(MEDCOUPLING_ENABLE_SHAPERECOGN "Build Shape Recognition module." OFF)
 OPTION(MEDCOUPLING_WITH_FILE_EXAMPLES "Install examples of files containing meshes and fields of different formats." ON)
 OPTION(MEDCOUPLING_USE_MPI "(Use MPI containers) - For MED this triggers the build of ParaMEDMEM." OFF)
 OPTION(MEDCOUPLING_BUILD_TESTS "Build MEDCoupling C++ tests." ON)
index 98dc66ce5db18d047371b50d4db7770595c5e6fe..3911381c8a078f53ce68ad9ceb7e064a6b7e3c17 100644 (file)
@@ -31,6 +31,11 @@ ENDIF(MEDCOUPLING_BUILD_TESTS)
 ADD_SUBDIRECTORY(MEDCoupling)
 ADD_SUBDIRECTORY(ICoCo)
 
+IF(MEDCOUPLING_ENABLE_SHAPERECOGN)
+  ADD_SUBDIRECTORY(ShapeRecogn)
+  LIST(APPEND SWIG_MODULE_medcoupling_EXTRA_FLAGS -DWITH_SHAPE_RECOGN)
+ENDIF(MEDCOUPLING_ENABLE_SHAPERECOGN)
+
 IF(MEDCOUPLING_ENABLE_PYTHON)
   ADD_SUBDIRECTORY(MEDCoupling_Swig)
   ADD_SUBDIRECTORY(PyWrapping)
@@ -75,9 +80,6 @@ IF(MEDCOUPLING_USE_MPI)
   ENDIF(MEDCOUPLING_BUILD_TESTS)
 ENDIF(MEDCOUPLING_USE_MPI)
 
-IF(MEDCOUPLING_ENABLE_SHAPERECOGN)
-  ADD_SUBDIRECTORY(ShapeRecogn)
-ENDIF(MEDCOUPLING_ENABLE_SHAPERECOGN)
 
 # Application tests
 configure_file(CTestTestfileInstall.cmake.in "CTestTestfileST.cmake" @ONLY)
index 06c12759c2618b16f28ec6498f65dbc2e2de92b8..29e2a82c7db103ef9238ce33d3e74a12b9af53fb 100644 (file)
@@ -57,8 +57,9 @@
   static const char RENUM_EXT[]="Renumberer";
   static const char PART_EXT[]="Partitioner";
   static const char PAR_INTERPOL_EXT[]="Parallel interpolator (SPMD paradigm)";
+  static const char SHAPE_RECOGNITION_EXT[]="Shape Recognition";
   
-  static const char *EXTENSIONS[]={SEQ_INTERPOL_EXT,MEDFILEIO_EXT,RENUM_EXT,PART_EXT,PAR_INTERPOL_EXT};
+  static const char *EXTENSIONS[]={SEQ_INTERPOL_EXT,MEDFILEIO_EXT,RENUM_EXT,PART_EXT,PAR_INTERPOL_EXT,SHAPE_RECOGNITION_EXT};
   static const int NB_OF_EXTENSIONS=sizeof(EXTENSIONS)/sizeof(const char *);
 %}
 
 #endif
 #ifdef WITH_PARALLEL_INTERPOLATOR
     ret.push_back(std::string(PAR_INTERPOL_EXT));
+#endif
+#ifdef WITH_SHAPE_RECOGN
+    ret.push_back(std::string(SHAPE_RECOGNITION_EXT));
 #endif
     return ret;
   }