You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
project('sol2_test', 'cpp',
|
|
version: '0.1.0',
|
|
default_options: [
|
|
'cpp_std=c++23',
|
|
# 'cpp_args=-D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1',
|
|
])
|
|
|
|
# use this for common options only for our executables
|
|
cpp_args=[
|
|
'-Wno-unused-parameter',
|
|
'-Wno-unused-function',
|
|
'-Wno-unused-variable',
|
|
'-Wno-unused-but-set-variable',
|
|
'-Wno-deprecated-declarations',
|
|
'-Wno-maybe-uninitialized', # only because of error in release_build
|
|
]
|
|
link_args=[]
|
|
# these are passed as override_defaults
|
|
exe_defaults = [ 'warning_level=2', 'werror=false']
|
|
|
|
fmt = subproject('fmt').get_variable('fmt_dep')
|
|
fuc2 = subproject('fuc2').get_variable('fuc2_dep')
|
|
sol2 = subproject('sol2').get_variable('sol2_dep')
|
|
|
|
dependencies = [fmt, fuc2, sol2]
|
|
|
|
sources = [
|
|
]
|
|
|
|
executable('sol2_test', [
|
|
'tests/sol2_test.cpp',
|
|
'tests/bao_tests.cpp',
|
|
'tests/soa_tests.cpp',
|
|
'tests/perf_tests.cpp',
|
|
'src/stats.cpp',
|
|
'tests/main.cpp',
|
|
],
|
|
cpp_args: cpp_args,
|
|
link_args: link_args,
|
|
include_directories: include_directories('src'),
|
|
override_options: exe_defaults,
|
|
dependencies: dependencies)
|
|
|