[CMake] CPack are not packing dll

David Cole david.cole at kitware.com
Thu Jun 14 13:32:48 EDT 2012


You're using "COMPONENT" -- have you read up on componentized packaging
with CPack?

First google result for "CPack component" is:

  http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack


HTH,
David


On Thu, Jun 14, 2012 at 1:21 PM, Totte Karlsson <totte at dunescientific.com>wrote:

> Hi,
>
> Have anyone else encountered the cpack not packing of installs in a
> install statement? Or should it be used differently?
>
> -totte
>
>
> On 6/12/2012 4:08 PM, Totte Karlsson wrote:
>
>> Hi,
>>
>> For a certain library, I changed my CMake file to using the following
>>
>> install (
>> TARGETS ${target}
>> RUNTIME DESTINATION bin
>> LIBRARY DESTINATION lib
>> ARCHIVE DESTINATION lib
>> COMPONENT c_api)
>>
>>
>> It works fine "installing", but when running CPack, the dll is not
>> packed, but
>> the import lib is.
>>
>> Any hints on how to get that working? CPack 'worked' when using install(
>> FILES....)
>>
>>
>> -totte
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/**opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ>
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120614/b0a720b7/attachment.htm>


More information about the CMake mailing list