File: meson.build

package info (click to toggle)
libargs 6.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 956 kB
  • sloc: cpp: 10,576; makefile: 56; sh: 19; python: 12
file content (37 lines) | stat: -rw-r--r-- 948 bytes parent folder | download
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
29
30
31
32
33
34
35
36
37
project('args.hxx', ['cpp'],
  version: '6.2.2',
  default_options: 'cpp_std=c++11',
  license: 'MIT'
)

# This is a header-only lib, all we need to do is include it
args_dep = declare_dependency(
  include_directories: include_directories('.')
).as_system('system')

install_headers('args.hxx')

# examples
if get_option('examples')
executable('gitlike', sources: 'examples/gitlike.cxx', dependencies: args_dep)
executable('completion', sources: 'examples/completion.cxx', dependencies: args_dep)
endif

# tests
if get_option('unittests')
test('argstest', executable('argstest',
  sources: 'test.cxx',
  dependencies: args_dep
))

test('argstest-multiple-inclusion', executable('argstest-multiple-inclusion',
  sources: [ 'test/multiple_inclusion_1.cxx', 'test/multiple_inclusion_2.cxx' ],
  dependencies: args_dep
))

test('argstest-windows-h', executable('argstest-windows-h',
  sources: 'test/windows_h.cxx',
  dependencies: args_dep
))
endif