-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
29 lines (22 loc) · 807 Bytes
/
meson.build
File metadata and controls
29 lines (22 loc) · 807 Bytes
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
project('graph_lib', 'cpp',
version : '0.1',
default_options : ['warning_level=3', 'cpp_std=c++20', 'optimization=3'])
compiler = meson.get_compiler('cpp')
inc = include_directories('graph_lib/include')
graphlib_dep = declare_dependency(include_directories : inc)
tests = [
['Test_Directed_Network', 'test/test_directed_network.cpp'],
['Test_Network_Operations', 'test/test_network_operations.cpp']
]
test_inc = []
test_inc += inc
test_inc += 'test/util'
Catch2 = dependency('Catch2', method : 'cmake', modules : ['Catch2::Catch2WithMain', 'Catch2::Catch2'])
fmt_dep = dependency('fmt')
foreach t : tests
exe = executable(t.get(0), t.get(1),
dependencies : [Catch2, fmt_dep],
include_directories : test_inc
)
test(t.get(0), exe, workdir : meson.project_source_root())
endforeach