[CMake] CPACK and cmake install(targets

Totte Karlsson totte at dunescientific.com
Fri Jan 18 15:13:30 EST 2013


Hi,
I try to package a built shared library on windows. In the CMAKE file 
for where the dll and import lib is created I have

install(TARGETS ${target}
         RUNTIME DESTINATION bin
         LIBRARY DESTINATION lib
         ARCHIVE DESTINATION lib
         COMPONENT rr_core
)

When executing the install target in my projet, the dll goes to the bin 
folder and the lib goes to the lib folder. That is all good.

But when running CPACK only the .lib file is packaged, and not the DLL. 
Why??

Thanks,
Totte







More information about the CMake mailing list