[Cmake] wxWindows + DLL
Andy Cedilnik
andy . cedilnik at kitware . com
30 Sep 2003 08:59:30 -0400
Hi Mathieu,
Since Jan wrote FindwxWindows.cmake, I will let him make the final
decision. That said, we do need a nice wxWindows test and a Cygwin, and
borland, and whatever else wxWindows dashboard.
Andy
On Tue, 2003-09-30 at 08:27, Mathieu Malaterre wrote:
> Hum, I guess I was not clear.
>
> I built wxWindows DLL properly but for WIN32 you need to define a
> special tag for each symbol you want to export in your DLL. And for that
> to work, wxWindow assume you pass 'DLLUSINGDLL' to the preprocessor (it
> will have consequence on included wx files).
>
> What I suggest is (*):
>
> Jan what do you think of it ? Can anybody from cmake-dev-team answer on
> this ? I tried looking at FindQT, and this was the way used for passing
> QT_DLL (~WXUSINGDLL) when linking against Qt's DLL. Then all you have to
> do in your *own* CMakeLists.txt is to add:
>
> ADD_DEFINITIONS(${WXWINDOWS_DEFINITIONS})