forked from qcxms/QCxMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
62 lines (54 loc) · 1.15 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
# This file is part of QCxMS.
project(
'qcxms',
'fortran',
version: '5.2.0',
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')
# General configuration information
exe_deps = []
subdir('config')
srcs = []
prog = []
# Collect sources
subdir('src')
# Create library target
qcxms_lib = library(
meson.project_name(),
sources: srcs,
dependencies: exe_deps,
include_directories: include_directories('include'),
)
# Export as dependency
qcxms_inc = qcxms_lib.private_dir_include()
qcxms_dep = declare_dependency(
link_with: qcxms_lib,
include_directories: qcxms_inc,
dependencies: exe_deps,
)
# Create executable target
qcxms_exe = executable(
meson.project_name(),
sources: prog,
dependencies: qcxms_dep,
install: install,
link_language: 'fortran',
)
if install
install_data(
files(
'bin/pqcxms',
'bin/q-batch',
'bin/getres',
),
install_mode: 'rwxr-xr-x',
install_dir: get_option('bindir'),
)
endif
# link_args: '-static'