OPTION(SALOME_MED_MICROMED "Build MED without MED file dependancy." OFF)
OPTION(SALOME_MED_ENABLE_PYTHON "Build PYTHON bindings." ON)
OPTION(SALOME_MED_ENABLE_PARTITIONER "Build MEDPartitioner." ON)
+OPTION(SALOME_MED_ENABLE_RENUMBER "Build Renumber." ON)
OPTION(SALOME_USE_MPI "To build ParaMEDMEM." OFF)
OPTION(SALOME_BUILD_GUI "Build GUI of MED." ON)
OPTION(SALOME_BUILD_TESTS "Build MED tests." ON)
ENDIF(SALOME_MED_PARTITIONER_PARMETIS)
ENDIF(SALOME_USE_MPI)
+IF(SALOME_MED_ENABLE_RENUMBER)
+ FIND_PACKAGE(SalomeBoost)
+ENDIF(SALOME_MED_ENABLE_RENUMBER)
+
IF(SALOME_BUILD_DOC)
FIND_PACKAGE(SalomeDoxygen REQUIRED)
FIND_PACKAGE(SalomeGraphviz) # Remains optional even here.
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-#TODO MEDPartitioner & RENUMBER
ADD_SUBDIRECTORY(INTERP_KERNEL)
ADD_SUBDIRECTORY(MEDCoupling)
IF(NOT SALOME_MED_MICROMED)
ADD_SUBDIRECTORY(MEDLoader)
- ADD_SUBDIRECTORY(RENUMBER)
+ IF(SALOME_MED_ENABLE_RENUMBER)
+ ADD_SUBDIRECTORY(RENUMBER)
+ ENDIF(SALOME_MED_ENABLE_RENUMBER)
IF(SALOME_MED_ENABLE_PARTITIONER)
ADD_SUBDIRECTORY(MEDPartitioner)
ENDIF(SALOME_MED_ENABLE_PARTITIONER)
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${MEDFILE_DEFINITIONS} ${PLATFORM_DEFINITIONS})
+ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${BOOST_DEFINITIONS} ${MEDFILE_DEFINITIONS} ${PLATFORM_DEFINITIONS})
+
+IF(Boost_FOUND)
+ ADD_DEFINITIONS("-DENABLE_BOOST")
+ENDIF(Boost_FOUND)
INCLUDE_DIRECTORIES(
${BOOST_INCLUDE_DIRS}
SET(renumbercpp_LDFLAGS medloader)
-IF(MED_ENABLE_METIS)
+IF(Metis_FOUND)
SET(renumbercpp_SOURCES ${renumbercpp_SOURCES} RENUMBER_METISRenumbering.cxx)
SET(renumbercpp_HEADERS_HXX ${renumbercpp_HEADERS_HXX} RENUMBER_METISRenumbering.hxx)
SET(renumbercpp_LDFLAGS ${renumbercpp_LDFLAGS} ${METIS_LIBS})
SET(renumber_DEFINITIONS "${renumber_DEFINITIONS} ${METIS_DEFINITIONS}")
-ENDIF(MED_ENABLE_METIS)
+ENDIF(Metis_FOUND)
-IF(BOOST_STATUS)
+IF(Boost_FOUND)
SET(renumbercpp_SOURCES ${renumbercpp_SOURCES} RENUMBER_BOOSTRenumbering.cxx)
SET(renumbercpp_HEADERS_HXX ${renumbercpp_HEADERS_HXX} RENUMBER_BOOSTRenumbering.hxx)
- SET(renumbercpp_LDFLAGS ${renumbercpp_LDFLAGS} ${BOOST_LIBS})
- SET(renumber_DEFINITIONS "${renumber_DEFINITIONS} ${BOOST_DEFINITIONS} -DENABLE_BOOST")
-ENDIF(BOOST_STATUS)
+ SET(renumbercpp_LDFLAGS ${renumbercpp_LDFLAGS} ${BOOST_LIBRARIES})
+ENDIF(Boost_FOUND)
ADD_EXECUTABLE(renumber ${renumber_SOURCES})
SET_TARGET_PROPERTIES(renumber PROPERTIES COMPILE_FLAGS "${renumber_DEFINITIONS}")