Skip to content

Commit 1a2faf0

Browse files
authored
Add header-only Meson support (yhirose#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`
1 parent 5a43bb8 commit 1a2faf0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

meson.build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
project('cpp-httplib', 'cpp', license: 'MIT')
2+
3+
cpp_httplib_dep = declare_dependency(include_directories: include_directories('.'))
4+
5+
if meson.version().version_compare('>=0.54.0')
6+
meson.override_dependency('cpp-httplib', cpp_httplib_dep)
7+
endif

0 commit comments

Comments
 (0)