-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
60 lines (50 loc) · 2.51 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
project('gecko', 'cpp',
version: '1.0',
default_options: ['warning_level=3', 'cpp_std=c++17'])
#==========================================================
# dependencies to extern projects
#==========================================================
boost = subproject('boost-1.87.0')
boost_dep = boost.get_variable('boost_dep')
cgal = subproject('CGAL-5.6.2')
cgal_dep = cgal.get_variable('cgal_dep')
predicates = subproject('predicates')
predicates_dep = predicates.get_variable('predicates_lib_dep')
eigen3_dep = dependency('eigen3')
catch2_proj = subproject('catch2')
catch2_dep = catch2_proj.get_variable('catch2_dep')
catch2_main_dep = catch2_proj.get_variable('catch2_with_main_dep')
nlohmann_json_dep = dependency('nlohmann_json')
#==========================================================
# path to the test repo
#==========================================================
test_samples_dir = '"'+meson.project_source_root()+'/test_data"'
configure_file(
output: 'unit_test_config.h',
configuration: configuration_data({ 'TEST_SAMPLES_DIR': test_samples_dir}),
install: false
)
# denpendency tyo provide to unit test suites
ut_dep = declare_dependency(include_directories : '.')
#==========================================================
# Project structure
#==========================================================
subdir('gmds_core')
subdir('gblock')
subdir('cblock')
subdir('mcts')
#==========================================================
# Project testing
#==========================================================
gecko_test = executable('test_split', 'test/split.cpp', dependencies: [cgal_dep,
boost_dep,
nlohmann_json_dep,
gmds_core_cad_lib_dep,
gmds_core_cadfac_lib_dep,
gmds_core_ig_lib_dep,
gmds_core_igalgo_lib_dep,
gmds_core_io_lib_dep,
gmds_core_math_lib_dep,
gmds_core_utils_lib_dep,
gblock_lib_dep,
eigen3_dep])