-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
47 lines (38 loc) · 1.47 KB
/
meson.build
File metadata and controls
47 lines (38 loc) · 1.47 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
project(
'starter',
'cpp',
version: '0.1',
default_options: [
'cpp_std=c++20',
'warning_level=3',
'buildtype=release',
'strip=true',
],
)
#── Subprojects ───────────────────────────────────────────────────────────────#
fmt = subproject('fmt')
fmt_dep = fmt.get_variable('fmt_dep')
toml = subproject('tomlplusplus')
toml_dep = toml.get_variable('tomlplusplus_dep')
subdir('hipo4')
#── ROOT via root-config ─────────────────────────────────────────────────────#
root_incdir = run_command('root-config', '--incdir', check: true).stdout().strip()
root_libs = run_command('root-config', '--libs', check: true).stdout().strip().split()
root_dep = declare_dependency(
include_directories: include_directories(root_incdir),
link_args: root_libs,
)
#── Project sources & include dirs ────────────────────────────────────────────#
inc = include_directories('include')
sources = files(
'src/Core/Particle.cpp',
'src/main.cpp',
'src/study1/Drawing.cpp',
'src/study1/Reader.cpp',
)
executable(
meson.project_name(),
sources,
include_directories: [inc],
dependencies: [hipo_dep, fmt_dep, toml_dep, root_dep],
)