Yes, add it as an ICON resource.
In a .rc file:
100 ICON "icon.ico"
Then compile the resource file with your favorite resource compiler.
Then pass the .res file as an argument to dmd.

On Mon, Aug 1, 2011 at 10:27 AM, Nrgyzer <nrgyzer@gmail.com> wrote:
Hi guys,

the most applications using there own icons for the exe-file. I'm
currently using external tools to set my own icon for the exe, but is
there any chance to automatically set the icon using the dmd compiler?