# Package root dir:
SET_AND_CHECK(KERNEL_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@")
-# Include directories
+# Include directories and definitions
SET_AND_CHECK(KERNEL_INCLUDE_DIRS "${KERNEL_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
+SET(KERNEL_DEFINITIONS)
#### Now the specificities
# Options exported by the package:
SET(SALOME_USE_MPI @SALOME_USE_MPI@)
+IF(SALOME_USE_MPI)
+ SET(KERNEL_INCLUDE_DIRS "${KERNEL_INCLUDE_DIRS};@MPI_INCLUDE_DIRS@")
+ SET(KERNEL_DEFINITIONS "@MPI_DEFINITIONS@")
+ENDIF()
+
SET(SALOME_BUILD_DOC @SALOME_BUILD_DOC@)
SET(SALOME_BUILD_TESTS @SALOME_BUILD_TESTS@)
SET(SALOME_LIGHT_ONLY @SALOME_LIGHT_ONLY@)