forked from aramakus/AC4DC
-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
73 lines (58 loc) · 1.56 KB
/
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
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
67
68
69
70
71
72
73
project('ac4dc','cpp',
version:'0.2.0',
license: ['GPLv3'],
meson_version: '>=0.63.0',
default_options: ['warning_level=3', 'cpp_std=c++17']
)
main_args = []
if get_option('disable_tbr')
main_args += '-DNO_TBR'
endif
if get_option('disable_ee')
main_args += '-DNO_EE'
endif
if get_option('disable_eii')
main_args += 'NO_EII'
endif
if not get_option('ministep_updating')
main_args += '-DNO_MINISTEP_UPDATING'
endif
library_path = []
project_sources = []
project_header_files = []
project_test_sources = []
project_benchmark_sources = []
inc = [include_directories('include', 'include/Wigner')]
# check if we are on homebrew
#OSX_ADHOC = (run_command('brew','-v', check:true).returncode() == 0)I
subdir('include')
# add more include directories here...
subdir('src')
# Dependencies
# pybind11
py3_inst = import('python').find_installation('python3')
pybind11_config = find_program('pybind11-config')
pybind11_config_ret = run_command(pybind11_config, ['--includes'],check: true)
pybind11 = declare_dependency(
include_directories: [pybind11_config_ret.stdout().split('-I')[-1].strip()],
)
python3 = dependency('python3')
py3_inst = import('python').find_installation('python3')
ac4dc_bin_deps = [
dependency('openmp'),
dependency('eigen3')
]
if get_option('interactive')
ac4dc_bin_deps += [dependency('ncurses')]
main_args += '-DNCURSES'
endif
ac4dc_bin_libdeps = [
wigner_lib
]
ac4dc_bin = executable('ac4dc',
main_sources,
include_directories: inc,
dependencies: ac4dc_bin_deps,
link_with: ac4dc_bin_libdeps,
cpp_args: main_args
)