FIND_PACKAGE(SalomeHDF5 REQUIRED)
FIND_PACKAGE(SalomeMEDFile REQUIRED)
IF(SALOME_MED_ENABLE_PARTITIONER)
- FIND_PACKAGE(SalomeLibXml2 REQUIRED)
+ FIND_PACKAGE(SalomeLibXml2)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(LibXml2 SALOME_MED_ENABLE_PARTITIONER)
IF(SALOME_MED_PARTITIONER_METIS)
- FIND_PACKAGE(SalomeMetis REQUIRED)
+ FIND_PACKAGE(SalomeMetis)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Metis SALOME_MED_PARTITIONER_METIS)
ENDIF(SALOME_MED_PARTITIONER_METIS)
IF(SALOME_MED_PARTITIONER_SCOTCH)
- FIND_PACKAGE(SalomeScotch REQUIRED)
+ FIND_PACKAGE(SalomeScotch)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Scotch SALOME_MED_PARTITIONER_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 REQUIRED)
+ FIND_PACKAGE(SalomeCppUnit)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(CppUnit SALOME_BUILD_TESTS)
ENDIF(SALOME_BUILD_TESTS)
IF(SALOME_USE_MPI)
FIND_PACKAGE(SalomeMPI REQUIRED)
IF(SALOME_MED_PARTITIONER_PARMETIS)
- FIND_PACKAGE(SalomeParMetis REQUIRED)
+ FIND_PACKAGE(SalomeParMetis)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(ParMetis SALOME_MED_PARTITIONER_PARMETIS)
ENDIF(SALOME_MED_PARTITIONER_PARMETIS)
ENDIF(SALOME_USE_MPI)
IF(SALOME_MED_ENABLE_RENUMBER)
FIND_PACKAGE(SalomeBoost)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Boost SALOME_MED_ENABLE_RENUMBER)
ENDIF(SALOME_MED_ENABLE_RENUMBER)
IF(SALOME_BUILD_DOC)
- FIND_PACKAGE(SalomeDoxygen REQUIRED)
- FIND_PACKAGE(SalomeGraphviz) # Remains optional even here.
- FIND_PACKAGE(SalomeSphinx REQUIRED)
+ FIND_PACKAGE(SalomeDoxygen)
+ FIND_PACKAGE(SalomeGraphviz)
+ FIND_PACKAGE(SalomeSphinx)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Doxygen SALOME_BUILD_DOC)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Graphviz SALOME_BUILD_DOC)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Sphinx SALOME_BUILD_DOC)
ENDIF(SALOME_BUILD_DOC)
IF(SALOME_MED_ENABLE_PYTHON)
- FIND_PACKAGE(SalomePython REQUIRED)
- FIND_PACKAGE(SalomeSWIG REQUIRED)
+ FIND_PACKAGE(SalomePython)
+ FIND_PACKAGE(SalomeSWIG)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(Python SALOME_MED_ENABLE_PYTHON)
+ SALOME_UPDATE_FLAG_AND_LOG_PACKAGE(SWIG SALOME_MED_ENABLE_PYTHON)
IF(NOT SALOME_MED_STANDALONE)
FIND_PACKAGE(SalomeOmniORBPy REQUIRED)
ENDIF(NOT SALOME_MED_STANDALONE)
ENDIF(SALOME_MED_ENABLE_PYTHON)
+# Detection report
+SALOME_PACKAGE_REPORT()
+
# Directories
#
# Directories have to be given after prerequisites (to be able to use
ADD_DEFINITIONS("-DENABLE_BOOST")
ENDIF(Boost_FOUND)
+# Include directories
INCLUDE_DIRECTORIES(
- ${Boost_INCLUDE_DIRS}
- ${METIS_INCLUDE_DIRS}
${MEDFILE_INCLUDE_DIRS}
${HDF5_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/../MEDLoader
SET(renumbercpp_LDFLAGS medloader)
IF(Metis_FOUND)
+ INCLUDE_DIRECTORIES(${METIS_INCLUDE_DIRS})
+
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})
ENDIF(Metis_FOUND)
IF(Boost_FOUND)
+ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+
SET(renumbercpp_SOURCES ${renumbercpp_SOURCES} RENUMBER_BOOSTRenumbering.cxx)
SET(renumbercpp_HEADERS_HXX ${renumbercpp_HEADERS_HXX} RENUMBER_BOOSTRenumbering.hxx)
SET(renumbercpp_LDFLAGS ${renumbercpp_LDFLAGS} ${BOOST_LIBRARIES})