diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..174a582 --- /dev/null +++ b/meson.build @@ -0,0 +1,19 @@ +project('locusts', 'c', version: '1.0.0', default_options: ['warning_level=3']) + +source = 'include/locusts.h' + +lib = library('ocusts', source, install: true) + +project_dep =declare_dependency(include_directories: include_directories('include')) + +install_headers(source) + +pkg = import('pkgconfig') +pkg.generate(lib, description: 'A completely normal C library') + +if not meson.is_subproject() + test( + 'Locust Testing Utility', + executable('test_locusts', 'tests/test_locusts.c', link_with: lib, dependencies: project_dep), + ) +endif
\ No newline at end of file |