From 1a2faf09e0c6a41be50b21ba56d498941b17cb1b Mon Sep 17 00:00:00 2001 From: Andrea Pappacoda <34214253+Tachi107@users.noreply.github.com> Date: Sat, 5 Jun 2021 22:45:00 +0200 Subject: [PATCH] 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` --- meson.build | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 meson.build diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..e43cd6f --- /dev/null +++ b/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