Paths.cmake 2.76 KB
Newer Older
1 2 3 4 5 6 7
# Choose C and C++ compilers. You might also specifies here clang static analyzer (paths to ccc-analyzer and c++-analyzer respectively) to perform static analysis of the code.
set(COMPILER 'clang )
set(COMPILER_DIRECTORY 'clang )
set(CC /Users/Shared/LibraryVersions/clang/Openmpi/bin/mpicc )
set(CXX /Users/Shared/LibraryVersions/clang/Openmpi/bin/mpic++ )

# Choose either 'debug' or 'release'.
8
set(MODE debug)
9

10 11
# Choose either STATIC or SHARED.
set(LIBRARY_TYPE STATIC)
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63

# Whether specific macros should be activated or not.

    # If true, add a (costly) method that gives an hint whether an UpdateGhost() call was relevant or not.
set(MOREFEM_CHECK_UPDATE_GHOSTS_CALL_RELEVANCE   False)

    # If true, TimeKeep gains the ability to track times between each call of PrintTimeElapsed(). If not, PrintTimeElapsed() is flatly ignored.
set(MOREFEM_EXTENDED_TIME_KEEP   False)

    # If true, there are additional checks that no nan and inf appears in the code. Even if False, solver always check for the validity of its solution (if a nan or an inf is present the SolveLinear() or SolveNonLinear() operation throws with a dedicated Petsc error). Advised in debug mode and up to you in release mode.
set(MOREFEM_CHECK_NAN_AND_INF   True)

# OpenMPI libary.
set(OPEN_MPI_INCL_DIR /Users/Shared/LibraryVersions/clang/Openmpi/include )
set(OPEN_MPI_LIB_DIR /Users/Shared/LibraryVersions/clang/Openmpi/lib )

# BLAS Library.
set(BLAS_CUSTOM_LINKER True)
set(BLAS_LIB_DIR None)
set(BLAS_LIB '-framework Accelerate )

# Petsc library.
set(PETSC_GENERAL_INCL_DIR /Users/Shared/LibraryVersions/clang/Petsc/include )
set(PETSC_DEBUG_INCL_DIR /Users/Shared/LibraryVersions/clang/Petsc/debug/include )
set(PETSC_RELEASE_INCL_DIR /Users/Shared/LibraryVersions/clang/Petsc/release/include )

set(PETSC_DEBUG_LIB_DIR /Users/Shared/LibraryVersions/clang/Petsc/debug/lib )
set(PETSC_RELEASE_LIB_DIR /Users/Shared/LibraryVersions/clang/Petsc/release/lib )

# Parmetis library.
set(PARMETIS_INCL_DIR /Users/Shared/LibraryVersions/clang/Parmetis/include )
set(PARMETIS_LIB_DIR /Users/Shared/LibraryVersions/clang/Parmetis/lib )

# Lua library.
set(LUA_INCL_DIR /Users/Shared/LibraryVersions/clang/Lua/include )
set(LUA_LIB_DIR /Users/Shared/LibraryVersions/clang/Lua/lib )

# Boost library
set(BOOST_INCL_DIR /Users/Shared/LibraryVersions/clang/Boost/include )
set(BOOST_LIB_DIR /Users/Shared/LibraryVersions/clang/Boost/lib )

# Ops directory (source files are looked there and library is compiled by Morefem).
set(OPS_DIR /Users/Shared/LibraryVersions/clang/Ops )

# Seldon directory (source files are looked there and library is compiled by Morefem).
set(SELDON_DIR /Users/Shared/LibraryVersions/clang/Seldon )

# If you want to couple Morefem with Phillips library. None in most of the cases!
set(PHILLIPS_LINKER False)
set(PHILLIPS_DIR None)