-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
44 lines (38 loc) · 886 Bytes
/
meson.build
File metadata and controls
44 lines (38 loc) · 886 Bytes
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
38
39
40
41
42
43
44
project(
'template_cpp',
'cpp',
version: '0.1.0',
default_options : ['cpp_std=c++17']
)
#fs = import('fs')
#dep_libsomething = dependency('libsomething', required : false)
#if not dep_libsomething.found()
# cc = meson.get_compiler('cpp')
# dep_libsomething = cc.find_library('something', required : true)
#endif
dep_doctest = dependency('doctest', fallback : ['doctest', 'doctest_dep'])
exe = executable(
'template_cpp',
files('src/main.cc'),
# dependencies : [
# dep_libsomething
# ]
)
runtests = executable(
'runtests',
files('test/main_test.cc'),
dependencies : [
dep_doctest
]
)
test('runtests', runtests)
meson.add_install_script(
'scripts/install.sh',
meson.project_name(),
exe.name(),
meson.project_version(),
get_option('prefix'),
get_option('prefix') / get_option('bindir'),
get_option('prefix') / get_option('datadir'),
meson.current_build_dir()
)