MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR or turn option SALOME_MED_STANDALONE to ON !")
ENDIF(EXISTS ${KERNEL_ROOT_DIR})
LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files")
+ LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
FIND_PACKAGE(SalomeOmniORB REQUIRED)
ELSE(NOT SALOME_MED_STANDALONE)
LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local_without_kernel/cmake_files")
FIND_PACKAGE(SalomeMEDFile REQUIRED)
IF(SALOME_MED_ENABLE_PARTITIONER)
FIND_PACKAGE(SalomeLibXml2 REQUIRED)
+ IF(SALOME_MED_PARTITIONER_METIS)
+ FIND_PACKAGE(SalomeMetis REQUIRED)
+ ENDIF(SALOME_MED_PARTITIONER_METIS)
ENDIF(SALOME_MED_ENABLE_PARTITIONER)
ENDIF(NOT SALOME_MED_MICROMED)
INCLUDE_DIRECTORIES(${SCOTCH_INCLUDE_DIRS})
ENDIF(MED_ENABLE_SCOTCH)
-IF(MED_ENABLE_METIS)
+IF(SALOME_MED_PARTITIONER_METIS)
ADD_DEFINITIONS(${METIS_DEFINITIONS})
+ ADD_DEFINITIONS("-DMED_ENABLE_METIS")
INCLUDE_DIRECTORIES(${METIS_INCLUDE_DIRS})
-ENDIF(MED_ENABLE_METIS)
+ENDIF(SALOME_MED_PARTITIONER_METIS)
IF(MED_ENABLE_PARMETIS)
- ADD_DEFINITIONS(${METIS_DEFINITIONS})
+ ADD_DEFINITIONS(${PARMETIS_DEFINITIONS})
INCLUDE_DIRECTORIES(${PARMETIS_INCLUDE_DIRS})
ENDIF(MED_ENABLE_PARMETIS)
SET(medpartitionercpp_DEFINITIONS "${medpartitionercpp_DEFINITIONS} ${PARMETIS_DEFINITIONS}")
SET(medpartitionercpp_LDFLAGS ${medpartitionercpp_LDFLAGS} ${PARMETIS_LIBS})
ENDIF(MED_ENABLE_PARMETIS)
-IF(MED_ENABLE_METIS)
+IF(SALOME_MED_PARTITIONER_METIS)
SET(medpartitionercpp_HEADERS_HXX ${medpartitionercpp_HEADERS_HXX} MEDPARTITIONER_MetisGraph.hxx)
SET(medpartitionercpp_SOURCES ${medpartitionercpp_SOURCES} MEDPARTITIONER_MetisGraph.cxx)
SET(medpartitionercpp_DEFINITIONS "${medpartitionercpp_DEFINITIONS} ${METIS_DEFINITIONS}")
- SET(medpartitionercpp_LDFLAGS ${medpartitionercpp_LDFLAGS} ${METIS_LIBS})
-ENDIF(MED_ENABLE_METIS)
+ SET(medpartitionercpp_LDFLAGS ${medpartitionercpp_LDFLAGS} ${METIS_LIBRARIES})
+ENDIF(SALOME_MED_PARTITIONER_METIS)
IF(MED_ENABLE_SCOTCH)
SET(medpartitionercpp_HEADERS_HXX ${medpartitionercpp_HEADERS_HXX} MEDPARTITIONER_ScotchGraph.hxx)
SET(medpartitionercpp_SOURCES ${medpartitionercpp_SOURCES} MEDPARTITIONER_ScotchGraph.cxx)