<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You need multiple component specifications in your install(TARGETS
comand - like this:<br>
<div>
<div>install(TARGETS mylib</div>
<div>&nbsp;&nbsp; &nbsp;RUNTIME DESTINATION bin COMPONENT libraries</div>
<div>&nbsp;&nbsp; &nbsp;LIBRARY DESTINATION lib COMPONENT libraries</div>
<div>&nbsp;&nbsp; &nbsp;ARCHIVE DESTINATION lib/static COMPONENT libraries)</div>
</div>
<br>
Ryan<br>
<br>
On 6/4/10 9:14 AM, David Ojeda wrote:
<blockquote
 cite="mid:AANLkTilnaTOLniB7BhiJ7VhqZrcScDxUu-6dAPx6ZEz3@mail.gmail.com"
 type="cite">Hello all,
  <div><br>
  </div>
  <div>I have a problem using the COMPONENT property of the install
command. My CMakeLists.txt has several install commands:</div>
  <div><br>
  </div>
  <div># some files...</div>
  <div>install(FILES ${some_var} DESTINATION include/xxx COMPONENT
headers)</div>
  <div>
  <div>install(FILES "${CMAKE_CURRENT_BINARY_DIR}/somefile.txt"&nbsp;</div>
  <div>&nbsp;&nbsp; &nbsp;DESTINATION share/txt</div>
  <div>&nbsp;&nbsp; &nbsp;COMPONENT extras)</div>
  </div>
  <div># a shared library created with add_library(mylib SHARED
${somefiles})</div>
  <div>
  <div>install(TARGETS mylib</div>
  <div>&nbsp;&nbsp; &nbsp;RUNTIME DESTINATION bin</div>
  <div>&nbsp;&nbsp; &nbsp;LIBRARY DESTINATION lib</div>
  <div>&nbsp;&nbsp; &nbsp;ARCHIVE DESTINATION lib/static</div>
  <div>&nbsp;&nbsp; &nbsp;COMPONENT libraries)</div>
  </div>
  <div><br>
  </div>
  <div>When I do&nbsp;</div>
  <div>
  <div>make list_install_components</div>
  <div>I get:</div>
  <div>Available install components are: "Unspecified" "extras"
"headers"</div>
  </div>
  <div><br>
  </div>
  <div>My question is: why I don't have a "libraries" component? Does
the COMPONENT property works with shared libraries?</div>
  <div><br>
  </div>
  <div>Thank you for your help</div>
  <div><br>
  </div>
  <div>David</div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Ryan Pavlik
Human-Computer Interaction Graduate Student
Virtual Reality Applications Center
Iowa State University

<a class="moz-txt-link-abbreviated" href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a>
<a class="moz-txt-link-freetext" href="http://academic.cleardefinition.com/">http://academic.cleardefinition.com/</a></pre>
</body>
</html>