From: ageay Date: Tue, 9 Jul 2013 15:30:52 +0000 (+0000) Subject: renumber with boost X-Git-Tag: B4KillOfAutomake~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1dcd39c571d9b282495c624d7b653fe6297de26a;p=modules%2Fmed.git renumber with boost --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f94d73f6..df0de1134 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a01e295c2..4b959f11a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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) diff --git a/src/RENUMBER/CMakeLists.txt b/src/RENUMBER/CMakeLists.txt index c86873558..2acd62033 100644 --- a/src/RENUMBER/CMakeLists.txt +++ b/src/RENUMBER/CMakeLists.txt @@ -17,7 +17,11 @@ # 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}")