switched to meson, let's see if it's gonna bite me

This commit is contained in:
2019-11-28 16:04:00 -08:00
parent c4a21b6be8
commit 87208d599d
2 changed files with 17 additions and 19 deletions

17
meson.build Normal file
View File

@@ -0,0 +1,17 @@
project('fedavg_mpi', 'c')
add_project_arguments(
'-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION',
language: 'c'
)
mpi = dependency('mpi')
python = dependency('python3')
numpy_header = include_directories(run_command(
'python3', '-c', 'import numpy;print(numpy.get_include())'
).stdout().strip())
executable(
'fedavg_mpi', 'main.c', 'cythoned/library.c',
dependencies: [mpi, python],
include_directories: numpy_header
)