etl/meson.build
Sergey Skorokhod 43b041cbfb Meson tests & style fix (#447)
* meson tests fix

* missed unit-tests added into meson.build

* fix use_stl option

* meson style fix

* test

* bugfix

Co-authored-by: Sergey Skorokhod <s.skorokhod@1440.space>
2021-10-25 10:36:11 +01:00

31 lines
747 B
Meson

project('etl',
['cpp'],
default_options : [
'warning_level=2',
'werror=false',
# `build.*` options affect `native: true targets`
# plain options affect `native: false` targets.
'cpp_std=c++17', 'build.cpp_std=c++17',
],
meson_version: '>=0.54.0',
version: '20.18.1'
)
compile_args = []
if get_option('use_stl')
compile_args += '-DETL_NO_STL=0'
elif
compile_args += '-DETL_NO_STL=1'
endif
etl_dep = declare_dependency(
include_directories: include_directories('include'),
extra_files: ['meson.build'],
compile_args: compile_args
)
# Only register tests with the test runner when built as a primary project
if meson.is_subproject() == false
subdir('test')
endif