Building many identical targets in subdirectories #14964
Unanswered
egor-tensin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have the following use-case and I'm not sure how to adapt Meson to it: a project with a number of tests (let's say, 50), each of which resides in its own directory (under
tests/unit/
, sotests/unit/test1
,tests/unit/test2
, ...,tests/unit/test50
). Each test needs to build a bunch ofcustom_target
s based on its sources, but the build procedure is almost identical between all of them. I would like totests/unit/testN
directories,custom_target
s' outputs be built in their our corresponding directories.Is that possible? What I've done so far is a
tests/unit/meson.build
file, which defines all thecustom_target
s in aforeach
loop. However, this leads to all the custom_target outputs to be placed in tests/unit/ (in the build directory), which makes everything really disorganized. Could you please help me find a solution for this?Beta Was this translation helpful? Give feedback.
All reactions