[CMake] install component shared library

David Ojeda david.ojeda at gmail.com
Fri Jun 4 13:03:55 EDT 2010


Excellent!

Thank you very much Ryan, that did it...

On Jun 4, 2010, at 6:15 PM, Ryan Pavlik wrote:

> You need multiple component specifications in your install(TARGETS  
> comand - like this:
> install(TARGETS mylib
>     RUNTIME DESTINATION bin COMPONENT libraries
>     LIBRARY DESTINATION lib COMPONENT libraries
>     ARCHIVE DESTINATION lib/static COMPONENT libraries)
>
> Ryan
>
> On 6/4/10 9:14 AM, David Ojeda wrote:
>>
>> Hello all,
>>
>> I have a problem using the COMPONENT property of the install  
>> command. My CMakeLists.txt has several install commands:
>>
>> # some files...
>> install(FILES ${some_var} DESTINATION include/xxx COMPONENT headers)
>> install(FILES "${CMAKE_CURRENT_BINARY_DIR}/somefile.txt"
>>     DESTINATION share/txt
>>     COMPONENT extras)
>> # a shared library created with add_library(mylib SHARED $ 
>> {somefiles})
>> install(TARGETS mylib
>>     RUNTIME DESTINATION bin
>>     LIBRARY DESTINATION lib
>>     ARCHIVE DESTINATION lib/static
>>     COMPONENT libraries)
>>
>> When I do
>> make list_install_components
>> I get:
>> Available install components are: "Unspecified" "extras" "headers"
>>
>> My question is: why I don't have a "libraries" component? Does the  
>> COMPONENT property works with shared libraries?
>>
>> Thank you for your help
>>
>> David
>>
>> _______________________________________________
>> 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
>
>
> -- 
> Ryan Pavlik
> Human-Computer Interaction Graduate Student
> Virtual Reality Applications Center
> Iowa State University
>
> rpavlik at iastate.edu
> http://academic.cleardefinition.com/
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100604/95f9d48a/attachment-0001.htm>


More information about the CMake mailing list