aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 7afb4968017e35593c572e35bf11343df728b687 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
project('locusts', 'c', version: '1.0.0', default_options: ['warning_level=3'])

source = 'include/locusts.h'

lib = library('ocusts', source, install: true, version: meson.project_version(), soversion: '1')

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