- IF(SALOME_MED_ENABLE_PARTITIONER)
- #FIND_PACKAGE(SalomeLibXml2)
- #SALOME_LOG_OPTIONAL_PACKAGE(LibXml2 SALOME_MED_ENABLE_PARTITIONER)
- IF(DEFINED ENV{LIBXML2_ROOT_DIR})
- SET(CMAKE_PREFIX_PATH "$ENV{LIBXML2_ROOT_DIR}")
- ENDIF()
- FIND_PACKAGE(LibXml2)
- MESSAGE("LIBXML2_FOUND: ${LIBXML2_FOUND}")
- MESSAGE("LIBXML2_INCLUDE_DIR: ${LIBXML2_INCLUDE_DIR}")
- MESSAGE("LIBXML2_LIBRARIES: ${LIBXML2_LIBRARIES}")
- MESSAGE("LIBXML2_DEFINITIONS: ${LIBXML2_DEFINITIONS}")
- MESSAGE("LIBXML2_XMLLINT_EXECUTABLE: ${LIBXML2_XMLLINT_EXECUTABLE}")
- MESSAGE("LIBXML2_VERSION_STRING: ${LIBXML2_VERSION_STRING}")
-
- IF(SALOME_MED_PARTITIONER_METIS)
- #FIND_PACKAGE(SalomeMetis)
- #SALOME_LOG_OPTIONAL_PACKAGE(Metis SALOME_MED_PARTITIONER_METIS)
- FIND_PACKAGE(Metis)
- ADD_DEFINITIONS("-DMED_ENABLE_METIS")
- ENDIF(SALOME_MED_PARTITIONER_METIS)
- IF(SALOME_MED_PARTITIONER_SCOTCH)
- #FIND_PACKAGE(SalomeScotch)
- #SALOME_LOG_OPTIONAL_PACKAGE(Scotch SALOME_MED_PARTITIONER_SCOTCH)
- FIND_PACKAGE(Scotch)
- ADD_DEFINITIONS("-DMED_ENABLE_SCOTCH")
- ENDIF(SALOME_MED_PARTITIONER_SCOTCH)
- ENDIF(SALOME_MED_ENABLE_PARTITIONER)
-ENDIF(NOT SALOME_MED_MICROMED)
-
-ENABLE_TESTING() # let it outsite because even if SALOME_BUILD_TESTS is OFF, python tests that not need additional compilation can be run.
-
-IF(SALOME_BUILD_TESTS)
- #FIND_PACKAGE(SalomeCppUnit)
- #SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
- FIND_PACKAGE(CppUnit)
-ENDIF(SALOME_BUILD_TESTS)
-
-IF(SALOME_USE_MPI)
+ IF(MEDCOUPLING_ENABLE_PARTITIONER)
+ FIND_PACKAGE(SalomeLibXml2)
+ SALOME_LOG_OPTIONAL_PACKAGE(LibXml2 MEDCOUPLING_ENABLE_PARTITIONER)
+ IF(MEDCOUPLING_PARTITIONER_METIS)
+ FIND_PACKAGE(SalomeMetis)
+ SALOME_LOG_OPTIONAL_PACKAGE(Metis MEDCOUPLING_PARTITIONER_METIS)
+ IF(SalomeMetis_FOUND)
+ ADD_DEFINITIONS("-DMED_ENABLE_METIS")
+ ENDIF()
+ ENDIF(MEDCOUPLING_PARTITIONER_METIS)
+ IF(MEDCOUPLING_PARTITIONER_SCOTCH)
+ FIND_PACKAGE(SalomeScotch)
+ SALOME_LOG_OPTIONAL_PACKAGE(Scotch MEDCOUPLING_PARTITIONER_SCOTCH)
+ IF(SalomeScotch_FOUND)
+ ADD_DEFINITIONS("-DMED_ENABLE_SCOTCH")
+ ENDIF()
+ ENDIF(MEDCOUPLING_PARTITIONER_SCOTCH)
+ ENDIF(MEDCOUPLING_ENABLE_PARTITIONER)
+ENDIF(NOT MEDCOUPLING_MICROMED)
+
+ENABLE_TESTING() # let it outsite because even if MEDCOUPLING_BUILD_TESTS is OFF, python tests that not need additional compilation can be run.
+
+IF(MEDCOUPLING_BUILD_TESTS)
+ FIND_PACKAGE(SalomeCppUnit)
+ SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
+ENDIF(MEDCOUPLING_BUILD_TESTS)
+
+IF(MEDCOUPLING_USE_MPI)