summaryrefslogtreecommitdiff
path: root/libs/cargs/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cargs/meson.build')
-rw-r--r--libs/cargs/meson.build19
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/cargs/meson.build b/libs/cargs/meson.build
new file mode 100644
index 0000000..5111af1
--- /dev/null
+++ b/libs/cargs/meson.build
@@ -0,0 +1,19 @@
+project('cargs', 'c',
+ license: 'MIT',
+ meson_version: '>= 0.45.1'
+)
+
+cargs_inc = include_directories('include')
+
+cargs = library('cargs', 'src/cargs.c',
+ install: true,
+ include_directories: cargs_inc
+)
+
+install_headers('include/cargs.h')
+
+cargs_dep = declare_dependency(include_directories: 'include', link_with: cargs)
+
+if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('cargs', cargs_dep)
+endif