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" </div><div> DESTINATION share/txt</div><div> COMPONENT extras)</div></div><div># a shared library created with add_library(mylib SHARED ${somefiles})</div>
<div><div>install(TARGETS mylib</div><div> RUNTIME DESTINATION bin</div><div> LIBRARY DESTINATION lib</div><div> ARCHIVE DESTINATION lib/static</div><div> COMPONENT libraries)</div></div><div><br></div><div>When I do </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>