Install IMPORTED library and its lib file with IMPORTED_RUNTIME_ARTIFACTS

Hello everyone!

I’ve got a cmake project where I build my static library, let’s call it “mylib”. This library depends on external .dll and the linking shouldn’t be done in cmake - it is done via LoadLibrary function in code itself, let’s call this .dll “extlib”.

So I need to put this .dll and its .lib file to the specific folder on install step.
I know, that it can be done via

install(FILES
$<TARGET_FILE:extlib>
$<TARGET_IMPORT_FILE:extlib>
TYPE BIN
)

But I was wondering, if it can be done vie install(IMPORTED_RUNTIME_ARTIFACTS). I was trying to do that, but as far as I can see, this command installs only .dll itself and not an .lib file with imports.

Is there any way to make it work or maybe here exists a good alternative way?