Splitting a project into different executable files
Andrey Zherikov
andrey.zherikov at gmail.com
Thu Oct 24 20:14:35 UTC 2024
On Saturday, 12 October 2024 at 01:09:56 UTC, Alexander Zhirov
wrote:
> Is it possible to organize a project that will consist of
> several main files. I want to write several simple programs in
> one project, but for them to be divided into different files.
> So that it would be possible to choose during compilation what
> to build, via dub. Is this possible?
I have a dub project that is a set of examples for my library.
Every example is a separate program with its own main function:
https://github.com/andrey-zherikov/argparse/blob/master/examples/dub.json
Hope this will be helpful.
More information about the Digitalmars-d-learn
mailing list