-
I think I'm right in saying that on github you'll usually see the src and build directories in the project root directory. Having read through the meson documentation I'm unsure as to the best directory structure to use with meson. I came across this thread Edit: Eli's answer in the "Building progams without needing to specify libraries and source files?" makes things easier regardless of project structure. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@5wattbulb I think it depends on the type of project. If you only have a few source files, having them in root directory is probably ok. For rmw, I have them all in a separate src/ directory, but the binary is output to the build root directory.
Yes, probably easier for examples. To get ideas about project structure, I'd suggest having a look at https://mesonbuild.com/Users.html and see how other projects have things organized. |
Beta Was this translation helpful? Give feedback.
@5wattbulb I think it depends on the type of project. If you only have a few source files, having them in root directory is probably ok. For rmw, I have them all in a separate src/ directory, but the binary is output to the build root directory.
Yes, probably easier for examples.
To get ideas about project structure, I'd suggest having a look at https://mesonbuild.com/Users.html and see how other projects have things organized.