diff --git a/c/meson.build b/c/meson.build index 79326c9..626ff45 100644 --- a/c/meson.build +++ b/c/meson.build @@ -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 diff --git a/meson.build b/meson.build index de43dd1..389dbbe 100644 --- a/meson.build +++ b/meson.build @@ -1,8 +1,9 @@ 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', @@ -10,11 +11,7 @@ project( ], ) -odrpack_lic = files( - 'LICENSE', -) - -fortran_compiler = meson.get_compiler('fortran') +# fortran_compiler = meson.get_compiler('fortran') c_compiler = meson.get_compiler('c') # BLAS