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`
This commit is contained in:
parent
5a43bb8149
commit
1a2faf09e0
7
meson.build
Normal file
7
meson.build
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user