[Cmake] Auto-generating exports for Windows DLLs

Amitha Perera perera at cs . rpi . edu
Thu, 30 Oct 2003 15:39:07 -0500


Hi all

Is anyone working on automatically generating the .def files to create
DLLs with Windows?

I've looked briefly at this, and can get it to work with Makefiles
(NMake). It is more difficult with Visual Studio, because the object
files are in some "random" (Debug, Release, RelWithDebInfo)
sub-directory of the build tree. In order to automatically generate
the .def file, I need a list of the object files that will go into the
library. Is there a way to get this list in a project file?

Thanks,
Amitha.