]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
renumber with boost
authorageay <ageay>
Tue, 9 Jul 2013 15:30:52 +0000 (15:30 +0000)
committerageay <ageay>
Tue, 9 Jul 2013 15:30:52 +0000 (15:30 +0000)
CMakeLists.txt
src/CMakeLists.txt
src/RENUMBER/CMakeLists.txt

index 0f94d73f61be728c09ca44bd07a26de93f22446b..df0de11346ce86edd9a071a1289c28216161d4ff 100644 (file)
@@ -50,6 +50,7 @@ OPTION(SALOME_MED_STANDALONE "Build MED without CORBA bindings. When OFF, exchan
 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)
@@ -122,6 +123,10 @@ IF(SALOME_USE_MPI)
   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.
index a01e295c27667ba4c240c510c23bd716bd794444..4b959f11a1bea8f7d74710b07fb3a5a4dc1b32bf 100644 (file)
@@ -17,7 +17,6 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-#TODO MEDPartitioner & RENUMBER
 ADD_SUBDIRECTORY(INTERP_KERNEL)
 ADD_SUBDIRECTORY(MEDCoupling)
 
@@ -27,7 +26,9 @@ ENDIF(SALOME_MED_ENABLE_PYTHON)
 
 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)
index c86873558be575e13512c184267801a98ed0df13..2acd620330f07713240c20f7046294983c75456a 100644 (file)
 # 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}
@@ -50,19 +54,18 @@ SET(renumber_SOURCES
 
 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}")