2013/1/18 Totte Karlsson <[email protected]>:
> 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??
May be because you are doing component packaging and that the
COMPONENT part of install(TARGETS should be repeated
for each DESTINATION.
i.e.
install(TARGETS ${target}
RUNTIME DESTINATION bin COMPONENT rr_core
LIBRARY DESTINATION lib COMPONENT rr_core
ARCHIVE DESTINATION lib COMPONENT rr_core
)
--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
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
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake