-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeson.build
More file actions
33 lines (25 loc) · 891 Bytes
/
meson.build
File metadata and controls
33 lines (25 loc) · 891 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
30
31
32
33
project('fastgl',
['cpp'],
default_options : ['cpp_std=c++17'])
py = import('python').find_installation(pure: false)
pybind = dependency('pybind11', version : '>=2.11')
inc = include_directories('src')
sources = files(
'src/fastgl.cpp', # original FastGL implementation
'src/fastgl_bindings.cpp', # pybind11 glue
)
# --- find OpenMP ----------------
omp_dep = dependency('openmp')
# Enable OpenMP for C++ manually
add_project_arguments('-fopenmp', language: 'cpp')
add_project_link_arguments('-fopenmp', language: 'cpp')
extension = py.extension_module(
'_fastgl',
sources : sources,
dependencies : [pybind, omp_dep],
include_directories : inc,
subdir : 'fastgl',
install : true,
)
# Install the pure-Python package tree itself
install_subdir('fastgl', install_dir : py.get_install_dir())