ThirdPartyPETSc.cmake 444 Bytes
Newer Older
Dave Moxey's avatar
Dave Moxey committed
1 2 3 4
OPTION(NEKTAR_USE_PETSC
    "Enable PETSc parallel matrix solver support." OFF)

CMAKE_DEPENDENT_OPTION(THIRDPARTY_BUILD_PETSC
5
    "Build PETSc if needed" OFF
Dave Moxey's avatar
Dave Moxey committed
6 7 8
    "NEKTAR_USE_PETSC" OFF)

IF( NEKTAR_USE_PETSC )
9 10 11 12
    INCLUDE(FindPETSc)
    MESSAGE(STATUS "Found PETSc: ${PETSC_LIBRARIES}")
    ADD_DEFINITIONS(-DNEKTAR_USING_PETSC)
    INCLUDE_DIRECTORIES(${PETSC_INCLUDES})
Dave Moxey's avatar
Dave Moxey committed
13 14 15 16 17 18 19 20
ENDIF( NEKTAR_USE_PETSC )

INCLUDE_DIRECTORIES(${PETSC_INCLUDES})