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)
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)
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)
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;
}