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.

Reply via email to