-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
41 lines (37 loc) · 890 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
40
41
project(
'opzioni', 'cpp',
version: '0.50.0',
license: 'BSL-1.0',
default_options: ['cpp_std=c++20', 'buildtype=debug']
)
# +--------------+
# | Dependencies |
# +--------------+
fmt_dep = dependency('fmt', version: ['>=7.0.3', '<8.0.0'])
# +--------------------+
# | Library definition |
# +--------------------+
include_dir = include_directories('include/')
opzioni_lib = library(
'opzioni',
['src/converters.cpp', 'src/opzioni.cpp', 'src/string.cpp'],
dependencies: fmt_dep,
include_directories: include_dir,
install: true
)
# Make it usable as a Meson subproject.
opzioni_dep = declare_dependency(
dependencies: fmt_dep,
include_directories: include_dir,
link_with: opzioni_lib
)
# +-------+
# | Tests |
# +-------+
subdir('tests/')
# +----------+
# | Examples |
# +----------+
if get_option('examples')
subdir('examples/')
endif