Files
SERiF/tests/poly/meson.build
Emily Boudreaux 3597f82ee4 fix(build): brought recent build changes to pointwise polytrope
pointwise polytrope had some issues from the old build system. Fast fowarded it so that it has all the fixes which have been merged into main
2025-03-13 15:11:46 -04:00

24 lines
667 B
Meson

# Test files for const
test_sources = [
'polyTest.cpp',
]
foreach test_file : test_sources
exe_name = test_file.split('.')[0]
message('Building test: ' + exe_name)
# Create an executable target for each test
test_exe = executable(
exe_name,
test_file,
dependencies: [gtest_dep, polysolver_dep, probe_dep, quill_dep, config_dep, gtest_main],
install_rpath: '@loader_path/../../src' # Ensure runtime library path resolves correctly
)
# Add the executable as a test
test(
exe_name,
test_exe,
env: ['MESON_SOURCE_ROOT=' + meson.project_source_root(), 'MESON_BUILD_ROOT=' + meson.project_build_root()])
endforeach