diff --git a/meson.build b/meson.build index 3b4fdaa..b0ef9eb 100644 --- a/meson.build +++ b/meson.build @@ -23,7 +23,7 @@ scufcont_lib = library( 'src/DString.c', 'src/scufcont.c', include_directories: [ - 'include' + scufcont_include ], c_args: [ c_args, @@ -31,6 +31,16 @@ scufcont_lib = library( ] ) +scufcont_dep = declare_dependency( + compile_args: [ + c_args, + '-D_SCUFCONT_VERSION="' + meson.project_version() + '"', + ], + include_directories: scufcont_include, + link_with: scufcont_lib, + version: meson.project_version() +) + if get_option('SCUFCONT_BUILD_TESTS') == true subdir('tests') endif