Library Install based on Usage

Hi All,
In my application I use a dynamically linked library as a git submodule (I’m open to use ExternalProject if that helps). The library, however will have it’s own install that looks something like:

install(TARGETS MyLib
    EXPORT MyLibTargets
    RUNTIME
        DESTINATION ${CMAKE_INSTALL_BINDIR}
        COMPONENT MyLib_Runtime
    LIBRARY
        DESTINATION ${CMAKE_INSTALL_LIBDIR}
        COMPONENT MyLib_Runtime
        NAMELINK_COMPONENT MyLib_Development
    INCLUDES
        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
        COMPONENT MyLib_Development
    ARCHIVE
        DESTINATION ${CMAKE_INSTALL_LIBDIR}
        COMPONENT MyLib_Development
)

Which is totally fine when the library is installed as a standalone project but what I would like to do is to just have the runtime included in my install output and redirected to a folder of my choice.
Is this possible at all?

AFAIK, using ExternalProject_add with an INSTALL_COMMAND tweak is your best option.

https://cmake.org/cmake/help/latest/module/ExternalProject.html