fix(build-system): fixed build system order and test env variables
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
subdir('resources')
|
subdir('resources')
|
||||||
|
|
||||||
# Build the main source code
|
# Build the main source code
|
||||||
|
subdir('config')
|
||||||
subdir('dobj')
|
subdir('dobj')
|
||||||
subdir('const')
|
subdir('const')
|
||||||
subdir('opatIO')
|
subdir('opatIO')
|
||||||
subdir('meshIO')
|
subdir('meshIO')
|
||||||
subdir('probe')
|
subdir('probe')
|
||||||
subdir('poly')
|
subdir('poly')
|
||||||
subdir('config')
|
|
||||||
|
|||||||
@@ -18,5 +18,8 @@ foreach test_file : test_sources
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Add the executable as a test
|
# Add the executable as a test
|
||||||
test(exe_name, test_exe)
|
test(
|
||||||
|
exe_name,
|
||||||
|
test_exe,
|
||||||
|
env: ['MESON_SOURCE_ROOT=' + meson.project_source_root(), 'MESON_BUILD_ROOT=' + meson.project_build_root()])
|
||||||
endforeach
|
endforeach
|
||||||
|
|||||||
@@ -16,5 +16,8 @@ foreach test_file : test_sources
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Add the executable as a test
|
# Add the executable as a test
|
||||||
test(exe_name, test_exe)
|
test(
|
||||||
|
exe_name,
|
||||||
|
test_exe,
|
||||||
|
env: ['MESON_SOURCE_ROOT=' + meson.project_source_root(), 'MESON_BUILD_ROOT=' + meson.project_build_root()])
|
||||||
endforeach
|
endforeach
|
||||||
|
|||||||
Reference in New Issue
Block a user