installing libs on Windows

Alexander Neundorf neundorf at kde.org
Tue Jul 24 03:25:42 BST 2007


On Monday 23 July 2007 04:53, Andreas Pakulat wrote:

> > Then we can set LIB_INSTALL_DIR to bin/ on Windows, and introduce a new
> > STATLIB_INSTALL_DIR. If somebody forgets this second part, the only
> > problem will be that the lib file will end up in bin/ instead of lib, but
> > I think this is not a real problem.
>
> You're confused I think. I can't tell how msvc handles this but for
> mingw we have:
>
> .exe == executable program
> .dll == shared library
> .lib == import library for the corresponding dll, this is needed to link
> against the dll
> .a   == static library
>
> So We still need the 3-line version as dll+exe go into bin/ and
> static+import lib go into lib/

I didn't try it, but please tell me which problem you mean.
Have a look at the sources.
The example above should be equivalent to 
INSTALL(TARGETS kdecore
                            RUNTIME DESTINATION ${LIB_INSTALL_DIR}
                            LIBRARY DESTINATION ${LIB_INSTALL_DIR}
                            ARCHIVE DESTINATION ${STATLIB_INSTALL_DIR})

Bye
Alex




More information about the kde-core-devel mailing list