-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
35 lines (31 loc) · 834 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
project('tomos', 'cpp', version : '0.1.0', default_options : ['warning_level=3', 'cpp_std=c++20'])
cc = meson.get_compiler('cpp')
includes = include_directories('include')
dependencies = [
dependency('boost')
, dependency('OpenCL')
, cc.find_library('metis')
, dependency('mesh')
, dependency('tomos-mesh')
]
sources = [
'source/tomos-color.cpp'
, 'source/tomos-partition.cpp'
, 'source/tomos-sparse.cpp'
]
tomos = library(
meson.project_name()
, sources
, include_directories : includes
, dependencies : dependencies
, install : true
)
tomos_dep = declare_dependency(
link_with : tomos
, include_directories : includes
, dependencies : dependencies
)
if not meson.is_subproject()
subdir('example')
subdir('tests')
endif