-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
35 lines (31 loc) · 921 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(
'purelib-and-platlib',
'cpp',
default_options: [
'cpp_std=c++23',
],
)
# timepix_sort_cpp_dep = dependency('timepix_sort_cpp', method : 'cmake', required: false)
incdir = include_directories(
'/usr/local/include/',
)
py = import('python').find_installation(pure: false)
pybind11_dep = dependency('pybind11')
# compile_args('-g', language : 'cpp')
# add_project_compile_arguments('-g', language : 'cpp')
# add_project_compile_arguments('-ggdb', language : 'cpp')
add_project_link_arguments('-L/usr/local/lib/', language : 'cpp')
add_project_link_arguments('-ltimepix-sort-c++', language : 'cpp')
py.extension_module(
'_timepix_sort',
'src/c++/chunks.cpp',
'src/c++/io.cpp',
'src/c++/events.cpp',
'src/c++/module.cpp',
'src/c++/volume.cpp',
dependencies : [pybind11_dep],
install: true,
include_directories : incdir,
subdir: 'timepix_sort'
)
subdir('src')