Skip to content

Commit

Permalink
Add header-only Meson support (yhirose#955)
Browse files Browse the repository at this point in the history
* Add header-only Meson support
This allows users to call `dependency('httplib')` and have the include
directory automatically configured

* Rename `httplib` to `cpp-httplib`
  • Loading branch information
Tachi107 authored Jun 5, 2021
1 parent 5a43bb8 commit 1a2faf0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1a2faf0

Please sign in to comment.