-
Notifications
You must be signed in to change notification settings - Fork 7
/
meson.build
52 lines (42 loc) · 992 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This build file is part of the PlotMS program
# for plotting QCxMS files
project('plotms',
'fortran',
version: '6.2',
license: 'LGPL-3.0-or-later',
meson_version: '>=0.55',
default_options: [
'buildtype=debugoptimized',
'default_library=static',
],
)
install = not (meson.is_subproject() and get_option('default_library') == 'static')
prog = []
srcs = []
exe_deps = []
# Collect sources
subdir('config')
subdir('src')
#plotms_exe = executable(
#executable('plotms',srcs)
#
# Create library target
plotms_lib = library(
meson.project_name(),
sources: srcs,
dependencies: exe_deps,
)
# Export as dependency
plotms_inc = plotms_lib.private_dir_include()
plotms_dep = declare_dependency(
link_with: plotms_lib,
include_directories: plotms_inc,
dependencies: exe_deps,
)
# Create executable target
plotms_exe = executable(
meson.project_name(),
sources: prog,
dependencies: plotms_dep,
install: install,
)