-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
28 lines (24 loc) · 855 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
project('conflict', 'cpp', version : '0.1', license : 'zlib', default_options : [ 'cpp_std=c++17' ])
conflict_inc = include_directories('include')
conflict_dep = declare_dependency(include_directories : conflict_inc)
meson.override_dependency('conflict', conflict_dep)
if get_option('install_headers')
install_headers(
'include/conflict/conflict.hpp',
'include/conflict/info.hpp',
'include/conflict/error.hpp',
'include/conflict/choice.hpp',
'include/conflict/option.hpp',
'include/conflict/string.hpp',
'include/conflict/parser.hpp',
'include/conflict/detail.hpp',
subdir : 'conflict')
pkg = import('pkgconfig')
pkg.generate(name : 'conflict',
description : 'C++17 command-line argument parsing library',
url : 'https://github.com/qookei/conflict',
subdirs : '.')
endif
if get_option('build_tests')
subdir('tests/')
endif