forked from geotopmodel/geotop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
44 lines (33 loc) · 1.32 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
# The meson build system for the geotop project
# Author: Alberto Sartori ([email protected]) 2018
project('geotop','cpp', 'c',
default_options : ['cpp_std=c++11',
'buildtype=release',
'warning_level=3' ],
version: '2.1.0')
# the following lists will be populated through the inclusion of the
# meson.build int the subfolders
# include_dirs : all the folders with the header files
# src_files : all the files needed to compile geotop
# deps : all the external dependencies required (e.g., boost, meteoio)
# we initialize them as empty lists
include_dirs = []
src_files = []
deps = []
# rpaths : all the runpaths, it must be a string
rpaths = '/usr/local/lib:/usr/lib:/usr/lib64:/usr/local/lib64'
# find all the source files, main, and include directories
subdir('src')
# find dependencise, set flags specific for the used compiler,
# generate config.h and version.h files
# set up the 'install' target
subdir('meson')
# the main object is set in a subfolder of src and handles the file
# where the main is defined
geotop = executable('geotop', main, src_files,
include_directories: include_dirs,
dependencies: deps,
install:true,
install_rpath: rpaths)
# set up tests
subdir('tests')