Files
SERiF/tests/eos/meson.build

34 lines
732 B
Meson
Raw Normal View History

2025-03-05 16:59:25 -05:00
# Test files for const
test_sources = [
'eosTest.cpp',
]
dependencies = [
gtest_dep,
eos_dep,
gtest_main,
resourceManager_dep,
config_dep,
composition_dep,
]
2025-03-05 16:59:25 -05:00
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: dependencies,
2025-03-05 16:59:25 -05:00
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