${SLEPC_INCLUDES}
${LINEARSOLVER_DIR}/inc
)
+ if( EXISTS ${PETSC4PY_ROOT_DIR}/petsc4py/include/petsc4py/petsc4py.i)
+ INCLUDE_DIRECTORIES( ${PETSC4PY_ROOT_DIR}/petsc4py/include
+ ${PETSC4PY_ROOT_DIR}/petsc4py/include/petsc4py )
+ elseif (EXISTS ${PETSC4PY_ROOT_DIR}/include/petsc4py/petsc4py.i )
+ INCLUDE_DIRECTORIES( ${PETSC4PY_ROOT_DIR}/include
+ ${PETSC4PY_ROOT_DIR}/include/petsc4py )
+ endif( EXISTS ${PETSC4PY_ROOT_DIR}/petsc4py/include/petsc4py/petsc4py.i)
+
+ if( EXISTS ${SLEPC4PY_ROOT_DIR}/slepc4py/include/slepc4py/slepc4py.i)
+ INCLUDE_DIRECTORIES( ${SLEPC4PY_ROOT_DIR}/slepc4py/include
+ ${SLEPC4PY_ROOT_DIR}/slepc4py/include/slepc4py )
+ elseif (EXISTS ${SLEPC4PY_ROOT_DIR}/include/slepc4py/slepc4py.i )
+ INCLUDE_DIRECTORIES( ${SLEPC4PY_ROOT_DIR}/include
+ ${SLEPC4PY_ROOT_DIR}/include/slepc4py )
+ endif( EXISTS ${SLEPC4PY_ROOT_DIR}/slepc4py/include/slepc4py/slepc4py.i)
+
file(COPY cdmath_with_petsc.i DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(RENAME ${CMAKE_CURRENT_BINARY_DIR}/cdmath_with_petsc.i ${CMAKE_CURRENT_BINARY_DIR}/cdmath.i)
else (CDMATH_WITH_PETSC)
)
IF( ${SOLVERLAB_WITH_MPI} )
- INCLUDE_DIRECTORIES(
- ${Python_INCLUDE_DIRS}
- ${CoreFlows_INCLUDES} #
- ${PETSC_INCLUDES}
- ${SLEPC_INCLUDES}
- )
-
if(EXISTS ${MPI4PY_ROOT_DIR}/mpi4py/include/mpi4py/mpi4py.i)
INCLUDE_DIRECTORIES( ${MPI4PY_ROOT_DIR}/mpi4py/include
${MPI4PY_ROOT_DIR}/mpi4py/include/mpi4py )
endif()
ENDIF( ${SOLVERLAB_WITH_MPI} )
-if(EXISTS ${PETSC4PY_ROOT_DIR}/petsc4py/include/petsc4py/petsc4py.i)
+if( EXISTS ${PETSC4PY_ROOT_DIR}/petsc4py/include/petsc4py/petsc4py.i)
INCLUDE_DIRECTORIES( ${PETSC4PY_ROOT_DIR}/petsc4py/include
${PETSC4PY_ROOT_DIR}/petsc4py/include/petsc4py )
elseif (EXISTS ${PETSC4PY_ROOT_DIR}/include/petsc4py/petsc4py.i )
INCLUDE_DIRECTORIES( ${PETSC4PY_ROOT_DIR}/include
${PETSC4PY_ROOT_DIR}/include/petsc4py )
-endif()
+endif( EXISTS ${PETSC4PY_ROOT_DIR}/petsc4py/include/petsc4py/petsc4py.i)
-if(EXISTS ${SLEPC4PY_ROOT_DIR}/slepc4py/include/slepc4py/slepc4py.i)
+if( EXISTS ${SLEPC4PY_ROOT_DIR}/slepc4py/include/slepc4py/slepc4py.i)
INCLUDE_DIRECTORIES( ${SLEPC4PY_ROOT_DIR}/slepc4py/include
${SLEPC4PY_ROOT_DIR}/slepc4py/include/slepc4py )
elseif (EXISTS ${SLEPC4PY_ROOT_DIR}/include/slepc4py/slepc4py.i )
INCLUDE_DIRECTORIES( ${SLEPC4PY_ROOT_DIR}/include
${SLEPC4PY_ROOT_DIR}/include/slepc4py )
-endif()
+endif( EXISTS ${SLEPC4PY_ROOT_DIR}/slepc4py/include/slepc4py/slepc4py.i)
IF (${CMAKE_VERSION} VERSION_LESS "3.8.0")
SWIG_ADD_MODULE(CoreFlows python CoreFlows.i)