title: CMake `INSTALL` for targets and its SO dependencies
body: <p>My target linked with several libraries using <code>TARGET_LINK_LIBRARIES</code> with <code>PUBLIC</code> keyword, The <code>INSTALL</code> command looks like <code>INSTALL(TARGETS foo DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)</code>. I want somehow to force the cmake to include all (preferably excluding system libraries) libraries (SOs only) I link with to be included in the installation process. I've tried EXPORT keyword but looks like it affects only libraries which I build with in my project and marked with the same <code>EXPORT</code> as <code>foo</code> library.
  <br>Is it possible?
  <br>
  EDIT001: Additional information that may affect answer.
  I'm using <a href="https://github.com/Microsoft/vcpkg" rel="noreferrer">vcpkg</a> to manage third parties. So the <code>TARGET_LINK_LIBRARIES</code> looks like</p>
  
  <pre><code>TARGET_LINK_LIBRARIES(foo PUBLIC
                        GTest::GTest
                        GTest::Main
                        ${GOOGLE_MOCK}
                        event
                        ${THRIFT_LIBRARIES}
                        ${Boost_LIBRARIES}
                        lzo2
                        sqlite3
                        ${ZeroMQ_LIBRARY}
                        gRPC::grpc
                        gRPC::grpc++
                        xml2
                        stdc++fs
                        bfd
                        -l:libisal.so.2
                        sgutils2
                        pthread
                        uuid
                        rt
                        )
  </code></pre>
  
  <p>So, essentially what I want to achieve is to take all these libraries which are macro'ed by <code>vcpkg</code>, like <code>${THRIFT_LIBRARIES}, ${Boost_LIBRARIES} and gRPC::grpc</code> and so on</p>