[CMake] Win32: INSTALL command fails to package .dll, packages .lib

Stephen Collyer scollyer at netspinner.co.uk
Fri Nov 16 05:15:20 EST 2007


I have a trivial library that I'm building with a SHARED attribute
and I'm installing it into a lib directory with a cmake list file thus:

ADD_LIBRARY(Test SHARED Test.cpp)

INSTALL(TARGETS Test LIBRARY DESTINATION lib)

I've managed to build this into a .dll under Win32 finally, but
the PACKAGE target, run from VS, only packages up the .lib file,
not the .dll.

Anyone know what I've done wrong ?

-- 
Regards

Steve Collyer
Netspinner Ltd


More information about the CMake mailing list