forked from libnegf/libnegf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.cmake
64 lines (46 loc) · 2.87 KB
/
config.cmake
1
2
3
4
5
6
7
8
9
10
11
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
#######################################################################################
# libNEGF General configuration file
#######################################################################################
# NOTE:
# Set environmnent variables FC and CC so cmake detects the correct compiler
# module load should do this if properly set
# MPI option
option(WITH_MPI "Whether MPI-parallelised library should be built" FALSE)
# OPEN MP option
option(WITH_OMP "Whether OMP should be used" TRUE)
# Note, this option does not work yet, so leave it to false
option(WITH_INELASTIC "Whether to build with inelastic scattering" FALSE)
# shared library .so build
option(BUILD_SHARED_LIBS "Whether the library should be shared" FALSE)
# Whether include modules should be added to installation
option(INSTALL_INCLUDE_FILES "Whether module files and headers should be installed" TRUE)
# Whether the tests should be compiled
option(BUILD_TESTING "Whether the tests should be built" TRUE)
# Whether mpifx should be downloaded
option(FORCE_MPIFX_DOWNLOAD
"Force mpifx download from repository (do not search for installed package) " FALSE)
# include directory on installation folder
set(INSTALL_INCLUDE_DIR "" CACHE PATH
"Installation directory for C and C++ header files (within standard include folder)")
# fortran modules directory on installation folder
set(INSTALL_MOD_DIR "${INSTALL_INCLUDE_DIR}/modfiles" CACHE PATH
"Installation directory for Fortran module files (within standard include folder)")
#######################################################################################
# Fortran and C compilers, manual setting example
#######################################################################################
#set(MYINCLUDE "$ENV{HOME}/include/gnu-11.1.0" CACHE STRING "include folder compiled with gnu-11.1")
#set(CMAKE_Fortran_COMPILER "mpif90" CACHE STRING "General Fortran compiler")
#set(CMAKE_Fortran_FLAGS "-fc=gfortran-11.1 -fmax-errors=5 -I${MYINCLUDE}" CACHE STRING "General Fortran flags")
#set(CMAKE_C_COMPILER "mpicc" CACHE STRING "General C compiler")
#set(CMAKE_C_FLAGS "-cc=gcc-11.1 -fmax-errors=5 -I${MYINCLUDE}" CACHE STRING "General C flags")
#######################################################################################
# Lapack library, manual setting example
#######################################################################################
#set(MKL_LIBDIR "/usr/pack/intel_mkl-11.1-ma/mkl/lib/intel64" CACHE STRING
# "Directory where to look for mkl libraries" )
#set(BLAS_LIBRARY_DIR "${MKL_LIBDIR};/usr/lib/x86_64-linux-gnu"
# CACHE STRING "Paths to scan when looking for the LAPACK libraries")
#set(BLAS_LIBRARY "mkl_gnu_thread;mkl_core;-lgomp" CACHE STRING "BLAS libraries")
#set(LAPACK_LIBRARY_DIR "${MKL_LIBDIR}"
# CACHE STRING "Paths to scan when looking for the LAPACK libraries")
#set(LAPACK_LIBRARY "mkl_intel_lp64" CACHE STRING "LAPACK libraries")