Skip to content

Commit

Permalink
improve meson build
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMVale committed Jan 22, 2025
1 parent cf734b4 commit ee51dca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 7 additions & 0 deletions c/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ odrpack_c_lib = library(
install: true,
)

incdir = include_directories('include')

odrpack_c_dep = declare_dependency(
include_directories: [incdir],
link_with: [odrpack_c_lib]
)

if get_option('build_examples')
subdir('example')
endif
Expand Down
11 changes: 4 additions & 7 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
project(
'odrpack',
'odrpack95',
['fortran', 'c'],
version: '1.0.0',
version: '1.0.1',
meson_version: '>=1.1',
license: 'MIT',
default_options: [
'default_library=static',
'buildtype=release',
'fortran_std=none'
],
)

odrpack_lic = files(
'LICENSE',
)

fortran_compiler = meson.get_compiler('fortran')
# fortran_compiler = meson.get_compiler('fortran')
c_compiler = meson.get_compiler('c')

# BLAS
Expand Down

0 comments on commit ee51dca

Please sign in to comment.