Browse Source

Add header-only Meson support (#955)

* Add header-only Meson support
This allows users to call `dependency('httplib')` and have the include
directory automatically configured

* Rename `httplib` to `cpp-httplib`
Andrea Pappacoda 4 years ago
parent
commit
1a2faf09e0
1 changed files with 7 additions and 0 deletions
  1. 7 0
      meson.build

+ 7 - 0
meson.build

@@ -0,0 +1,7 @@
+project('cpp-httplib', 'cpp', license: 'MIT')
+
+cpp_httplib_dep = declare_dependency(include_directories: include_directories('.'))
+
+if meson.version().version_compare('>=0.54.0')
+  meson.override_dependency('cpp-httplib', cpp_httplib_dep)
+endif