mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
Merge pull request #17 from red0124/improvement/meson_update
Improvement/meson update
This commit is contained in:
commit
0e28a06799
@ -632,6 +632,5 @@ revision = origin/master
|
||||
```
|
||||
Then simply fetch the dependency and it is ready to be used:
|
||||
```meson
|
||||
ssp_sub = subproject('ssp')
|
||||
ssp_dep = ssp_sub.get_variable('ssp_dep')
|
||||
ssp_dep = dependency('ssp')
|
||||
```
|
||||
|
15
meson.build
15
meson.build
@ -1,17 +1,24 @@
|
||||
project('ssp', 'cpp',
|
||||
project(
|
||||
'ssp',
|
||||
['cpp'],
|
||||
default_options :
|
||||
['warning_level=3',
|
||||
'cpp_std=c++17',
|
||||
'buildtype=debugoptimized'])
|
||||
'buildtype=debugoptimized',
|
||||
'wrap_mode=forcefallback'],
|
||||
version: '1.3.0',
|
||||
meson_version:'>=0.54.0')
|
||||
|
||||
fast_float_sub = subproject('fast_float')
|
||||
fast_float_dep = fast_float_sub.get_variable('fast_float_dep')
|
||||
fast_float_dep = dependency('fast_float')
|
||||
|
||||
ssp_dep = declare_dependency(
|
||||
include_directories: include_directories('include'),
|
||||
dependencies: fast_float_dep
|
||||
)
|
||||
|
||||
meson.override_dependency('ssp', ssp_dep)
|
||||
|
||||
if not meson.is_subproject()
|
||||
subdir('test')
|
||||
endif
|
||||
|
||||
|
@ -7,8 +7,7 @@ test_sources = files([
|
||||
'test_extractions_without_fast_float.cpp',
|
||||
])
|
||||
|
||||
doctest_proj = subproject('doctest')
|
||||
doctest_dep = doctest_proj.get_variable('doctest_dep')
|
||||
doctest_dep = dependency('doctest')
|
||||
|
||||
test_exe = executable(
|
||||
'test_ssp',
|
||||
|
Loading…
Reference in New Issue
Block a user