mirror of
https://github.com/likle/cwalk.git
synced 2026-10-28 18:02:24 +00:00
* adds `ENABLE_TESTS` option to meson project * adds conditional compilation of `cwalktest` executable * registers `cwalktest` test with meson project
21 lines
413 B
Meson
21 lines
413 B
Meson
project('cwalk', 'c',
|
|
license: 'MIT',
|
|
version: files('VERSION.txt'),
|
|
meson_version: '>= 0.57.0'
|
|
)
|
|
|
|
cwalk_inc = include_directories('include')
|
|
|
|
cwalk = library('cwalk', 'src/cwalk.c',
|
|
install: true,
|
|
include_directories: cwalk_inc
|
|
)
|
|
|
|
install_headers('include/cwalk.h')
|
|
|
|
cwalk_dep = declare_dependency(include_directories: 'include', link_with: cwalk)
|
|
|
|
if get_option('ENABLE_TESTS')
|
|
subdir('test')
|
|
endif
|