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

source = 'src/locusts.c'
header = 'include/locusts.h'
includes = include_directories('include')

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

project_dep =declare_dependency(include_directories: includes)

install_headers(header)

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