Repository navigation
Expand file tree
/
Copy pathmeson.build
More file actions
66 lines (56 loc) · 2.14 KB
/
Copy pathmeson.build
File metadata and controls
66 lines (56 loc) · 2.14 KB
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
62
63
64
65
66
project('tdep',
'fortran', 'c', 'cpp',
meson_version: '>=1.1',
default_options: ['buildtype=custom', 'debug=true', 'optimization=3'])
add_project_arguments('-cpp', language: 'fortran')
add_project_arguments('-ffree-line-length-none', language: 'fortran')
# add_project_arguments('-std=f2008', language: 'fortran')
add_project_arguments('-fallow-argument-mismatch', language: 'fortran')
# global dependencies:
# mpi
dep_mpi = dependency('mpi', language: 'fortran')
# linear algebra
dep_linalg_found = false
# 1) try accelerate framework for macos (if wanted)
# enabled via -Daccfrmwrk=true
if build_machine.system() == 'darwin' and get_option('accfrmwrk') == true
dep_linalg = dependency('appleframeworks', modules : 'accelerate', required: false)
dep_linalg_found = dep_linalg.found()
endif
# 2) try blas/openblas + lapack otherwise
if not dep_linalg_found
dep_blas = dependency('blas', required: false)
if not dep_blas.found()
message('Did not find the blas library. Trying with openblas')
dep_blas = dependency('openblas', required: true) # required as it is the last try
endif
dep_lapack = dependency('lapack', required: true)
dep_linalg = [dep_blas, dep_lapack]
endif
# # add some common path to pkg-config search path
# env = environ()
# env.prepend('PKG_CONFIG_PATH', '/usr/lib/x86_64-linux-gnu')
# message(get_option('linalg_flavor'))
# fft
dep_fftw = dependency('fftw3')
# hdf5
dep_hdf5 = dependency('hdf5', language: 'fortran', version: '>1.10.7')
# dep_all = [dep_mpi, dep_blas, dep_lapack, dep_fftw, dep_hdf5]
dep_all = [dep_mpi, dep_linalg, dep_fftw, dep_hdf5]
subdir('src/libolle')
subdir('src/libflap')
subdir('src/anharmonic_free_energy')
subdir('src/atomic_distribution')
subdir('src/canonical_configuration')
subdir('src/crystal_structure_info')
subdir('src/dump_dynamical_matrices')
subdir('src/extract_forceconstants')
subdir('src/generate_structure')
subdir('src/lineshape')
subdir('src/pack_simulation')
subdir('src/phasespace_surface')
subdir('src/phonon_dispersion_relations')
subdir('src/refine_structure')
subdir('src/samples_from_md')
subdir('src/thermal_conductivity')
subdir('src/thermal_conductivity_2023')