-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
32 lines (25 loc) · 1022 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
project('chess-engine', 'cpp',
default_options : ['cpp_std=c++17'])
cc = meson.get_compiler('cpp')
incdir = include_directories('../src')
files = []
files += [
'src/search/search.cc',
'src/neural/nn.cc',
'src/uci.cc',
]
gdbCompile = ['-std=c++17', '-g']
normalCompile = '-std=c++17'
add_project_arguments(cc.get_supported_arguments(['-march=native']), language : 'cpp')
TTTest = executable('transpositionTest', 'src/tests/TTTest.cc', files,
include_directories : incdir, cpp_args : gdbCompile)
test('TT', TTTest)
NNTest = executable('neuralNetworkTest', 'src/tests/NNTest.cc', 'src/neural/nn.cc',
include_directories : incdir, cpp_args : gdbCompile)
test('NN', NNTest)
NNTest = executable('LayerTest', 'src/tests/LayerTest.cc', 'src/neural/nn.cc',
include_directories : incdir, cpp_args : gdbCompile)
test('Layer', NNTest)
executable('main', 'src/main.cc', files,
include_directories : incdir,
cpp_args : normalCompile)