-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
48 lines (40 loc) · 827 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
42
43
44
45
46
47
48
project(
'dockerxx',
'cpp',
version : '0.1.0',
default_options : ['warning_level=3', 'cpp_std=c++20']
)
# -------- Lib --------
curl_dep = dependency('libcurl', fallback : ['curl'])
sources = [
'src/docker.cpp'
]
headers = [
'include/docker.hpp'
]
includes = [
'include'
]
dockerxx = shared_library(
'dockerxx',
sources: sources + headers,
include_directories: includes,
dependencies: [curl_dep],
install : true,
)
# -------- Testing --------
test_sources = [
'test/main.cpp'
]
gtest_dep = dependency('gtest', fallback : ['gtest', 'gtest_dep'])
test_executeable = executable(
'dockerxx_test',
sources: test_sources,
include_directories: includes,
link_with: [dockerxx],
dependencies: [gtest_dep]
)
test(
'dockerxx_test',
test_executeable
)