-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmeson.build
More file actions
21 lines (17 loc) · 772 Bytes
/
meson.build
File metadata and controls
21 lines (17 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
project('pine', 'cpp', default_options : ['cpp_std=c++20',
'buildtype=debug'])
compiler = meson.get_compiler('cpp')
winsock = compiler.find_library('ws2_32', required: false)
thread_dep = dependency('threads')
src = ['src/client.cpp', 'src/pine.h']
executable('client', src, dependencies : [thread_dep, winsock])
catch2 = dependency('catch2', required : false)
test_src = ['src/tests.cpp']
if catch2.found()
# TODO: in the future if we need to add threads to the API test cases might
# run into an infinite loop, i have absolutely no clue why that happens but
# including thread_dep here just leads to it. so don't include that future me.
e = executable('tests', test_src, dependencies : [catch2, winsock], cpp_args :
'-DTESTS')
test('tests', e)
endif