-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
24 lines (19 loc) · 972 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
project('InterpolateStress','cpp','cython',
default_options : ['optimization=3'])
add_project_arguments(['-march=native','-mtune=native'], language : 'cpp')
geographiclib_dep = dependency('geographiclib')
include = include_directories('cpp/include')
libinterpolatestress = static_library(
'interpolatestress',
['cpp/src/kernel.cpp', 'cpp/src/data.cpp', 'cpp/src/api.cpp',
'cpp/src/interpolate.cpp'],
dependencies : [geographiclib_dep, dependency('openmp')],
include_directories : include)
python = import('python').find_installation()
dep_py = python.dependency()
python.extension_module('backend',
'interpolatestress/backend.pyx',
dependencies : dep_py,
include_directories : include,
override_options : ['cython_language=cpp'],
link_with : libinterpolatestress)