-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
39 lines (33 loc) · 1020 Bytes
/
meson.build
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
project('zeldovich-PLT',
'cpp',
default_options : ['cpp_std=c++11', 'debug=true', 'optimization=3'],
# default_options : ['cpp_std=c++11', 'debug=true', 'b_sanitize=address'],
)
add_global_arguments('-march=native', language : 'cpp')
disk = get_option('DISK')
if disk
add_project_arguments(['-DDISK'], language: 'cpp')
endif
ph_proj = subproject('ParseHeader')
libparseheader_dep = ph_proj.get_variable('libparseheader_dep')
src = [
'src/block_array.cpp',
'src/output.cpp',
'src/parameters.cpp',
'src/power_spectrum.cpp',
'src/STimer.cc',
'src/zeldovich.cpp',
]
inc = include_directories('include')
dep = [dependency('gsl'),
dependency('fftw3'),
dependency('openmp'),
libparseheader_dep,
]
exe = executable('zeldovich',
src,
include_directories : inc,
dependencies : dep,
install : true,
install_rpath : '$ORIGIN/../lib64',
)